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
hn = heading number.
- #to_webpage ⇒ Object
Constructor Details
#initialize(s, debug: false, hn: 2) ⇒ Tree
hn = heading number
259 260 261 262 |
# File 'lib/htmlcom.rb', line 259 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
264 265 266 |
# File 'lib/htmlcom.rb', line 264 def to_webpage() @html end |