Class: Nekohtml::HtmlNode

Inherits:
HtmlThing show all
Defined in:
lib/nekohtml/html_document.rb

Instance Attribute Summary

Attributes inherited from HtmlThing

#java_object

Instance Method Summary collapse

Methods inherited from HtmlThing

#at, #do_search, #search

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

#textObject



70
71
72
# File 'lib/nekohtml/html_document.rb', line 70

def text
  @jelement.text_content
end

#valueObject



73
74
75
# File 'lib/nekohtml/html_document.rb', line 73

def value
  return self.text
end