Class: LibXMLJRuby::XML::NS
- Inherits:
-
Object
- Object
- LibXMLJRuby::XML::NS
- Defined in:
- lib/libxml-jruby/xml/ns.rb
Instance Attribute Summary collapse
-
#href ⇒ Object
readonly
Returns the value of attribute href.
-
#prefix ⇒ Object
readonly
Returns the value of attribute prefix.
Class Method Summary collapse
Instance Method Summary collapse
- #href? ⇒ Boolean
-
#initialize(node, href, prefix) ⇒ NS
constructor
A new instance of NS.
- #prefix? ⇒ Boolean
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
#href ⇒ Object (readonly)
Returns the value of attribute href.
14 15 16 |
# File 'lib/libxml-jruby/xml/ns.rb', line 14 def href @href end |
#prefix ⇒ Object (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
15 |
# File 'lib/libxml-jruby/xml/ns.rb', line 15 def href?; !!href; end |
#prefix? ⇒ Boolean
16 |
# File 'lib/libxml-jruby/xml/ns.rb', line 16 def prefix?; !!prefix; end |