Class: Peanuts::Mappings::WrapperElement
- Inherits:
-
Element
- Object
- Peanuts::Mapping
- MemberMapping
- Element
- Peanuts::Mappings::WrapperElement
- Defined in:
- lib/peanuts/mappings.rb
Instance Attribute Summary
Attributes inherited from MemberMapping
Attributes inherited from Peanuts::Mapping
#local_name, #namespace_uri, #options, #prefix
Instance Method Summary collapse
- #clear(nut) ⇒ Object
- #define_accessors(type) ⇒ Object
- #read(nut, reader) ⇒ Object
- #write(nut, writer) ⇒ Object
Methods inherited from MemberMapping
Methods inherited from Peanuts::Mapping
#initialize, #matches?, node_type
Constructor Details
This class inherits a constructor from Peanuts::Mappings::MemberMapping
Instance Method Details
#clear(nut) ⇒ Object
229 230 231 |
# File 'lib/peanuts/mappings.rb', line 229 def clear(nut) type.mapper.clear(nut) end |
#define_accessors(type) ⇒ Object
233 234 235 |
# File 'lib/peanuts/mappings.rb', line 233 def define_accessors(type) Mapper.of(self.type).define_accessors(type) end |