Class: Mods::Date::ExtractorDateFormat
- Inherits:
-
Mods::Date
- Object
- Mods::Date
- Mods::Date::ExtractorDateFormat
- Defined in:
- lib/mods/date.rb
Direct Known Subclasses
CenturyFormat, DecadeAsYearDashFormat, DecadeStringFormat, EmbeddedBCYearFormat, EmbeddedThreeDigitYearFormat, EmbeddedYearFormat, EmbeddedYearWithBracketsFormat, MMDDYYFormat, MMDDYYYYFormat, MysteryCenturyFormat, OneOrTwoDigitYearFormat, RomanNumeralYearFormat, UnparseableDate, YearRangeFormat
Instance Attribute Summary
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?, normalize_to_edtf, parse_date, #point, #precision, #qualifier, #questionable?, #single?, #start?, #text, #to_a, #type
Constructor Details
This class inherits a constructor from Mods::Date
Class Method Details
.supports?(text) ⇒ Boolean
111 112 113 |
# File 'lib/mods/date.rb', line 111 def self.supports?(text) text.match self::REGEX end |