Class: HtmlCom::Tree

Inherits:
Object
  • Object
show all
Defined in:
lib/htmlcom.rb

Instance Method Summary collapse

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_webpageObject



264
265
266
# File 'lib/htmlcom.rb', line 264

def to_webpage()
  @html
end