method
namespace
v1_9_1_378 -
Show latest stable
- Class:
REXML::Attribute
namespace(arg=nil)public
Returns the namespace URL, if defined, or nil otherwise
e = Element.new(“el”) e.add_attributes({“xmlns:ns”, “http://url”}) e.namespace( “ns” ) # -> “http://url”