Class: Houston::Roadmaps::Configuration
- Inherits:
-
Object
- Object
- Houston::Roadmaps::Configuration
- Defined in:
- lib/houston/roadmaps/configuration.rb
Instance Attribute Summary collapse
-
#markers ⇒ Object
readonly
Returns the value of attribute markers.
Instance Method Summary collapse
- #date(date_string, description) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 |
# File 'lib/houston/roadmaps/configuration.rb', line 5 def initialize @markers = [] end |
Instance Attribute Details
#markers ⇒ Object (readonly)
Returns the value of attribute markers.
3 4 5 |
# File 'lib/houston/roadmaps/configuration.rb', line 3 def markers @markers end |
Instance Method Details
#date(date_string, description) ⇒ Object
9 10 11 |
# File 'lib/houston/roadmaps/configuration.rb', line 9 def date(date_string, description) @markers.push(date: Date.parse(date_string), description: description) end |