Class: StandupMD::Title
- Inherits:
-
Object
- Object
- StandupMD::Title
- Defined in:
- lib/standup_md/title.rb
Overview
The title for a standup entry.
Instance Attribute Summary collapse
-
#date ⇒ Date
readonly
The entry date.
Instance Method Summary collapse
-
#initialize(date) ⇒ Title
constructor
Constructs an instance of
StandupMD::Title. -
#to_markdown ⇒ String
The title rendered as markdown.
-
#to_s ⇒ String
The configured title text.
Constructor Details
#initialize(date) ⇒ Title
Constructs an instance of StandupMD::Title.
19 20 21 22 23 |
# File 'lib/standup_md/title.rb', line 19 def initialize(date) raise ArgumentError, "Must be a Date object" unless date.is_a?(Date) @date = date end |
Instance Attribute Details
#date ⇒ Date (readonly)
The entry date.
13 14 15 |
# File 'lib/standup_md/title.rb', line 13 def date @date end |