method

to_string

v1_9_2_180 - Show latest stable - Class: REXML::Attribute
to_string()
public

Returns this attribute out as XML source, expanding the name

a = Attribute.new( “x”, “y” ) a.to_string # -> “x=‘y’” b = Attribute.new( “ns:x”, “y” ) b.to_string # -> “ns:x=‘y’”