Class: Calligraphy::XML::Namespace

Inherits:
Object
  • Object
show all
Defined in:
lib/calligraphy/xml/namespace.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(namespace) ⇒ Namespace

Returns a new instance of Namespace.



5
6
7
8
# File 'lib/calligraphy/xml/namespace.rb', line 5

def initialize(namespace)
  @href = namespace.href if namespace.href
  @prefix = namespace.prefix if namespace.prefix
end

Instance Attribute Details

#hrefObject

Returns the value of attribute href.



3
4
5
# File 'lib/calligraphy/xml/namespace.rb', line 3

def href
  @href
end

#prefixObject

Returns the value of attribute prefix.



3
4
5
# File 'lib/calligraphy/xml/namespace.rb', line 3

def prefix
  @prefix
end