Class: SaxStream::Internal::MappingFactory
- Inherits:
-
Object
- Object
- SaxStream::Internal::MappingFactory
- Defined in:
- lib/sax_stream/internal/mapping_factory.rb
Class Method Summary collapse
Class Method Details
.build_mapping(name, options) ⇒ Object
8 9 10 11 12 |
# File 'lib/sax_stream/internal/mapping_factory.rb', line 8 def self.build_mapping(name, ) last_part = [:to].split('/').last klass = (last_part =~ /^@/ ? Mappings::ElementAttribute : Mappings::ElementContent) klass.new(name, ) end |