Class: Logi
- Inherits:
-
Object
- Object
- Logi
- Defined in:
- lib/logi.rb,
lib/logi/post.rb,
lib/logi/config.rb,
lib/logi/loader.rb,
lib/logi/logger.rb,
lib/logi/runner.rb,
lib/logi/version.rb,
lib/logi/compiler.rb,
lib/logi/command/list.rb,
lib/logi/command/post.rb,
lib/logi/command/wiki.rb
Defined Under Namespace
Modules: Command, Logger, Runner Classes: Compiler, Config, Loader
Constant Summary collapse
- VERSION =
'0.1.0'
Instance Attribute Summary collapse
-
#compiler ⇒ Object
readonly
Returns the value of attribute compiler.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Logi
constructor
A new instance of Logi.
- #make ⇒ Object
Constructor Details
Instance Attribute Details
#compiler ⇒ Object (readonly)
Returns the value of attribute compiler.
6 7 8 |
# File 'lib/logi.rb', line 6 def compiler @compiler end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
6 7 8 |
# File 'lib/logi.rb', line 6 def config @config end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/logi.rb', line 6 def @options end |
Instance Method Details
#make ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/logi.rb', line 13 def make config.posts.each_value do |post| io = compiler.compile(post.command, config.post_path_for(post), config.layout_path_for(post)) compiler.write(config.output_path_for(post), io) end end |