Class: Utilities::Dates::DateFromLabel
- Inherits:
-
Object
- Object
- Utilities::Dates::DateFromLabel
- Defined in:
- lib/utilities/dates.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#verbatim_label ⇒ Object
readonly
Returns the value of attribute verbatim_label.
Instance Method Summary collapse
-
#initialize(label) ⇒ DateFromLabel
constructor
A new instance of DateFromLabel.
Constructor Details
#initialize(label) ⇒ DateFromLabel
Returns a new instance of DateFromLabel.
155 156 157 158 |
# File 'lib/utilities/dates.rb', line 155 def initialize(label) @verbatim_label = label @date = Utilities::Dates.date_regex_from_verbatim_label(label) end |
Instance Attribute Details
#date ⇒ Object (readonly)
Returns the value of attribute date.
152 153 154 |
# File 'lib/utilities/dates.rb', line 152 def date @date end |
#verbatim_label ⇒ Object (readonly)
Returns the value of attribute verbatim_label.
152 153 154 |
# File 'lib/utilities/dates.rb', line 152 def verbatim_label @verbatim_label end |