Class: JekyllPandocMultipleFormats::Config
- Inherits:
-
Object
- Object
- JekyllPandocMultipleFormats::Config
- Defined in:
- lib/jekyll-pandoc-multiple-formats/config.rb
Constant Summary collapse
- DEFAULTS =
{ 'skip' => false, 'bundle_permalink' => ':output_ext/:slug.:output_ext', 'papersize' => 'a5paper', 'sheetsize' => 'a4paper', 'imposition' => true, 'binder' => true, 'signature' => 20, 'flags' => '--smart', 'site_flags' => '--toc', 'outputs' => {}, 'covers_dir' => 'images/' }
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Instance Method Summary collapse
- #binder? ⇒ Boolean
- #imposition? ⇒ Boolean
-
#initialize(config = {}) ⇒ Config
constructor
A new instance of Config.
-
#outputs ⇒ Object
TODO magic.
- #skip? ⇒ Boolean
Constructor Details
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
17 18 19 |
# File 'lib/jekyll-pandoc-multiple-formats/config.rb', line 17 def config @config end |
Instance Method Details
#binder? ⇒ Boolean
31 32 33 |
# File 'lib/jekyll-pandoc-multiple-formats/config.rb', line 31 def binder? @config['binder'] end |
#imposition? ⇒ Boolean
27 28 29 |
# File 'lib/jekyll-pandoc-multiple-formats/config.rb', line 27 def imposition? @config['imposition'] end |
#outputs ⇒ Object
TODO magic
36 37 38 |
# File 'lib/jekyll-pandoc-multiple-formats/config.rb', line 36 def outputs @config['outputs'] end |
#skip? ⇒ Boolean
23 24 25 |
# File 'lib/jekyll-pandoc-multiple-formats/config.rb', line 23 def skip? @config['skip'] end |