Class: Utilities::Dates::DateFromLabel

Inherits:
Object
  • Object
show all
Defined in:
lib/utilities/dates.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label) ⇒ DateFromLabel

Returns a new instance of DateFromLabel

Parameters:

  • label (String)


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

#dateObject (readonly)

Returns the value of attribute date



152
153
154
# File 'lib/utilities/dates.rb', line 152

def date
  @date
end

#verbatim_labelObject (readonly)

Returns the value of attribute verbatim_label



152
153
154
# File 'lib/utilities/dates.rb', line 152

def verbatim_label
  @verbatim_label
end