Class: Mods::Date::EdtfFormat

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

Overview

Strict EDTF parser

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, #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

#dateObject (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