Class: Peanuts::Mappings::WrapperElement
Instance Attribute Summary
#converter, #name, #type
#local_name, #namespace_uri, #options, #prefix
Instance Method Summary
collapse
#initialize
#initialize, #matches?, node_type
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
|
#read(nut, reader) ⇒ Object
221
222
223
|
# File 'lib/peanuts/mappings.rb', line 221
def read(nut, reader)
Mapper.of(type).read(nut, reader)
end
|
#write(nut, writer) ⇒ Object
225
226
227
|
# File 'lib/peanuts/mappings.rb', line 225
def write(nut, writer)
write_node(writer) {|w| Mapper.of(type).write_children(nut, w) }
end
|