Method: Representable::XML::Namespace#representable_map

Defined in:
lib/representable/xml/namespace.rb

#representable_map(options, format) ⇒ Object

FIXME: this is a PoC, we need a better API to inject code.



116
117
118
119
120
# File 'lib/representable/xml/namespace.rb', line 116

def representable_map(options, format)
  super.tap do |map|
    map.each { |bin| bin.extend(AsWithNamespace) unless bin.is_a?(Binding::Attribute) }
  end
end