Class: Mods::Date::ExtractorDateFormat

Inherits:
Mods::Date
  • Object
show all
Defined in:
lib/mods/date.rb

Instance Attribute Summary

Attributes inherited from Mods::Date

#date, #xml

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

Returns:

  • (Boolean)


98
99
100
# File 'lib/mods/date.rb', line 98

def self.supports?(text)
  text.match self::REGEX
end