method

to_string

v1_8_6_287 - 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'"