Class: HtmlCom::Tree
- Inherits:
-
Object
- Object
- HtmlCom::Tree
- Defined in:
- lib/htmlcom.rb
Instance Method Summary collapse
-
#initialize(s, debug: false, hn: 2) ⇒ Tree
constructor
A new instance of Tree.
- #to_webpage ⇒ Object
Constructor Details
#initialize(s, debug: false, hn: 2) ⇒ Tree
Returns a new instance of Tree.
229 230 231 232 |
# File 'lib/htmlcom.rb', line 229 def initialize(s, debug: false, hn: 2) jtb = JsTreeBuilder.new(:sidebar, {src: s, hn: hn, debug: debug}) @html = jtb.to_webpage end |
Instance Method Details
#to_webpage ⇒ Object
234 235 236 |
# File 'lib/htmlcom.rb', line 234 def to_webpage() @html end |