Class: Rpub::Commands::Compile
- Inherits:
-
Rpub::Command
- Object
- Rpub::Command
- Rpub::Commands::Compile
- Defined in:
- lib/rpub/commands/compile.rb
Instance Attribute Summary
Attributes inherited from Rpub::Command
Instance Method Summary collapse
Methods inherited from Rpub::Command
Constructor Details
This class inherits a constructor from Rpub::Command
Instance Method Details
#run ⇒ Object
4 5 6 7 8 |
# File 'lib/rpub/commands/compile.rb', line 4 def run Rpub::Compressor.open(book.filename) do |zip| Rpub::Epub.new(book, source.read(context.styles)).manifest_in(zip) end end |