class Representable::XML::Binding::Attribute
Represents a tag attribute. Currently this only works on the top-level tag.
Public Instance Methods
read(node, as)
click to toggle source
# File lib/representable/xml/binding.rb, line 142 def read(node, as) node[as] end
serialize_for(value, parent, as)
click to toggle source
# File lib/representable/xml/binding.rb, line 146 def serialize_for(value, parent, as) parent[as] = value.to_s end
write(parent, value, as)
click to toggle source
# File lib/representable/xml/binding.rb, line 150 def write(parent, value, as) serialize_for(value, parent, as) end