Module: Oga::XML::ExpandedName

Included in:
Attribute, Element
Defined in:
lib/oga/xml/expanded_name.rb

Instance Method Summary collapse

Instance Method Details

#expanded_nameString

Returns the expanded name of the current Element or Attribute.

Returns:

  • (String)


7
8
9
# File 'lib/oga/xml/expanded_name.rb', line 7

def expanded_name
  namespace_name ? "#{namespace_name}:#{name}" : name
end