Method: Bookfile::PageCtx#initialize

Defined in:
lib/bookfile/book/book.rb

#initialize(config) ⇒ PageCtx

BookConfig



26
27
28
29
30
31
32
33
34
35
# File 'lib/bookfile/book/book.rb', line 26

def initialize( config )   ## BookConfig
  @config  = config
  @content = ''    ## rename to body,text,buf,out - why, why not???
  
  ## track rendering (stack) level - only output if in top-level (1)
  ##  -- check/todo - is there a better way???
  ##  use a (separate) partial method  or keep using on render method etc. ???
  ##   any other ways??
  @level = 0
end