Class: Mods::Date::EdtfFormat

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

Overview

Strict EDTF parser

Direct Known Subclasses

MarcFormat

Instance Attribute Summary collapse

Attributes inherited from Mods::Date

#xml

Class Method Summary collapse

Methods inherited from Mods::Date

#approximate?, #as_range, #encoding, #encoding?, #end?, from_element, #inferred?, #initialize, parse_date, #point, #qualifier, #questionable?, #single?, #start?, #text, #to_a, #type

Constructor Details

This class inherits a constructor from Mods::Date

Instance Attribute Details

#dateObject (readonly)

Returns the value of attribute date.



55
56
57
# File 'lib/mods/date.rb', line 55

def date
  @date
end

Class Method Details

.cleanup(text) ⇒ Object



57
58
59
# File 'lib/mods/date.rb', line 57

def self.cleanup(text)
  text
end