Class: LibXMLJRuby::XML::NS

Inherits:
Object
  • Object
show all
Defined in:
lib/libxml-jruby/xml/ns.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node, href, prefix) ⇒ NS

Returns a new instance of NS.



10
11
12
# File 'lib/libxml-jruby/xml/ns.rb', line 10

def initialize(node, href, prefix)
  @node, @href, @prefix = node, href, prefix
end

Instance Attribute Details

#hrefObject (readonly)

Returns the value of attribute href.



14
15
16
# File 'lib/libxml-jruby/xml/ns.rb', line 14

def href
  @href
end

#prefixObject (readonly)

Returns the value of attribute prefix.



14
15
16
# File 'lib/libxml-jruby/xml/ns.rb', line 14

def prefix
  @prefix
end

Class Method Details

.from_java(java_obj) ⇒ Object



5
6
7
# File 'lib/libxml-jruby/xml/ns.rb', line 5

def from_java(java_obj)
  
end

Instance Method Details

#href?Boolean

Returns:

  • (Boolean)


15
# File 'lib/libxml-jruby/xml/ns.rb', line 15

def href?; !!href; end

#prefix?Boolean

Returns:

  • (Boolean)


16
# File 'lib/libxml-jruby/xml/ns.rb', line 16

def prefix?; !!prefix; end