Class: Nekohtml::HtmlNode
- Defined in:
- lib/nekohtml/html_document.rb
Instance Attribute Summary
Attributes inherited from HtmlThing
Instance Method Summary collapse
-
#initialize(java_object) ⇒ HtmlNode
constructor
A new instance of HtmlNode.
- #text ⇒ Object
- #value ⇒ Object
Methods inherited from HtmlThing
Constructor Details
#initialize(java_object) ⇒ HtmlNode
Returns a new instance of HtmlNode.
65 66 67 68 |
# File 'lib/nekohtml/html_document.rb', line 65 def initialize(java_object) super @jelement = @java_object end |
Instance Method Details
#text ⇒ Object
70 71 72 |
# File 'lib/nekohtml/html_document.rb', line 70 def text @jelement.text_content end |
#value ⇒ Object
73 74 75 |
# File 'lib/nekohtml/html_document.rb', line 73 def value return self.text end |