Class: Bookfile::BookConfig
- Inherits:
-
Object
- Object
- Bookfile::BookConfig
- Defined in:
- lib/bookfile/book/config.rb
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ BookConfig
constructor
A new instance of BookConfig.
- #pages_dir ⇒ Object
- #templates_dir ⇒ Object
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_dir ⇒ Object
15 16 17 |
# File 'lib/bookfile/book/config.rb', line 15 def pages_dir @hash[:pages_dir] end |
#templates_dir ⇒ Object
11 12 13 |
# File 'lib/bookfile/book/config.rb', line 11 def templates_dir @hash[:templates_dir] end |