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 143
def read(node, as)
  node[as]
end
serialize_for(value, parent, as) click to toggle source
# File lib/representable/xml/binding.rb, line 147
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 151
def write(parent, value, as)
  serialize_for(value, parent, as)
end