Class: Jekyll::Epub::Tasks
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Jekyll::Epub::Tasks
- Defined in:
- lib/jekyll/epub/tasks.rb
Instance Method Summary collapse
- #epub(key, value) ⇒ Object
-
#initialize(&block) ⇒ Tasks
constructor
A new instance of Tasks.
- #web(key, value) ⇒ Object
Constructor Details
#initialize(&block) ⇒ Tasks
Returns a new instance of Tasks.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/jekyll/epub/tasks.rb', line 8 def initialize( &block ) @_web = { "port" => 4000 } @_epub = {} instance_eval( &block ) if block @web_override = Jekyll.configuration( @_web ) @epub_override = @_epub define_tasks end |
Instance Method Details
#epub(key, value) ⇒ Object
20 21 22 |
# File 'lib/jekyll/epub/tasks.rb', line 20 def epub( key, value ) @_epub[key.to_s] = value end |
#web(key, value) ⇒ Object
24 25 26 |
# File 'lib/jekyll/epub/tasks.rb', line 24 def web( key, value ) @_web[key.to_s] = value end |