Class: Mods::Date::EdtfFormat
- Inherits:
-
Mods::Date
- Object
- Mods::Date
- Mods::Date::EdtfFormat
- Defined in:
- lib/mods/date.rb
Overview
Strict EDTF parser
Instance Attribute Summary collapse
-
#date ⇒ Object
readonly
Returns the value of attribute date.
Attributes inherited from Mods::Date
Class Method Summary collapse
Methods inherited from Mods::Date
#approximate?, #as_range, #encoding, #encoding?, #end?, from_element, #inferred?, #initialize, #key?, parse_date, #point, #precision, #qualifier, #questionable?, #single?, #start?, #text, #to_a, #type
Constructor Details
This class inherits a constructor from Mods::Date
Instance Attribute Details
#date ⇒ Object (readonly)
Returns the value of attribute date.
62 63 64 |
# File 'lib/mods/date.rb', line 62 def date @date end |
Class Method Details
.normalize_to_edtf(text) ⇒ Object
64 65 66 |
# File 'lib/mods/date.rb', line 64 def self.normalize_to_edtf(text) text end |