Class: ONIX::ContentDate

Inherits:
SubsetDSL show all
Includes:
DateHelper
Defined in:
lib/onix/date.rb

Instance Attribute Summary

Attributes included from DateHelper

#date, #date_format

Instance Method Summary collapse

Methods included from DateHelper

#format_from_code, #format_from_string, #parse_date, #time

Methods inherited from SubsetDSL

_ancestor_registered_scopes, _ancestors_registered_elements, ancestor_registered_scopes, ancestors_registered_elements, element, elements, get_class, #initialize, ref_to_short, registered_elements, registered_scopes, scope, short_to_ref, #unsupported

Methods inherited from Subset

parse, #tag_match, tag_match, #unsupported

Constructor Details

This class inherits a constructor from ONIX::SubsetDSL

Instance Method Details

#parse(n) ⇒ Object



178
179
180
181
# File 'lib/onix/date.rb', line 178

def parse(n)
  super
  parse_date(n)
end

#roleObject



174
175
176
# File 'lib/onix/date.rb', line 174

def role
  @content_date_role
end