Method: Bookfile::PageCtx#initialize
- Defined in:
- lib/bookfile/book/book.rb
#initialize(config) ⇒ PageCtx
BookConfig
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/bookfile/book/book.rb', line 21 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 |