Class: Bookfile::BookConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/bookfile/book/config.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash = {}) ⇒ BookConfig

Returns a new instance of BookConfig.



7
8
9
# File 'lib/bookfile/book/config.rb', line 7

def initialize( hash={} )
  @hash = hash
end

Instance Method Details

#pages_dirObject



15
16
17
# File 'lib/bookfile/book/config.rb', line 15

def pages_dir
  @hash[:pages_dir]
end

#templates_dirObject



11
12
13
# File 'lib/bookfile/book/config.rb', line 11

def templates_dir
  @hash[:templates_dir]
end