Class: ONIX::ONIX21::SubsetDSL

Inherits:
SubsetDSL show all
Defined in:
lib/onix/onix21.rb

Instance Attribute Summary

Attributes included from Attributes

#attributes

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from SubsetDSL

element, elements, get_class, inherited, #initialize, n, #parse, register_elements, register_scopes, #register_subset_array, registered_elements, #registered_elements, registered_scopes, scope

Methods inherited from Subset

parse, #parse, #tag_match, #unsupported

Methods included from Attributes

attribute_class, #parse_attributes, #serialized_attributes

Constructor Details

This class inherits a constructor from ONIX::SubsetDSL

Class Method Details

.ref_to_short(name) ⇒ Object



21
22
23
# File 'lib/onix/onix21.rb', line 21

def ref_to_short(name)
  ONIX::ONIX21::RefToShort.names[name]
end

.short_to_ref(name) ⇒ Object



17
18
19
# File 'lib/onix/onix21.rb', line 17

def short_to_ref(name)
  ONIX::ONIX21::ShortToRef.names[name]
end

Instance Method Details

#get_class(name) ⇒ Object



26
27
28
29
30
31
32
# File 'lib/onix/onix21.rb', line 26

def get_class(name)
  if ONIX::ONIX21.const_defined?(name, false)
    ONIX::ONIX21.const_get(name)
  else
    ONIX.const_get(name)
  end
end