Method: HappyMapper::ClassMethods#content
- Defined in:
- lib/happymapper.rb
#content(name, type, options = {}) ⇒ Object
The value stored in the text node of the current element.
127 128 129 130 |
# File 'lib/happymapper.rb', line 127 def content(name, type, ={}) @content = TextNode.new(name, type, ) attr_accessor @content.method_name.intern end |