Flowdock
prefix() public

Returns the namespace of the attribute.

e = Element.new( “elns:myelement” ) e.add_attribute( “nsa:a”, “aval” ) e.add_attribute( “b”, “bval” ) e.attributes.get_attribute( “a” ).prefix # -> “nsa” e.attributes.get_attribute( “b” ).prefix # -> “elns” a = Attribute.new( “x”, “y” ) a.prefix # -> “”

Show source
Register or log in to add new notes.