Class: ONIX::PublishingDate

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



160
161
162
163
# File 'lib/onix/date.rb', line 160

def parse(n)
  super
  parse_date(n)
end

#roleObject



156
157
158
# File 'lib/onix/date.rb', line 156

def role
  @publishing_date_role
end