Class: Rpub::Commands::Preview

Inherits:
Rpub::Command show all
Defined in:
lib/rpub/commands/preview.rb

Instance Attribute Summary

Attributes inherited from Rpub::Command

#args, #options

Instance Method Summary (collapse)

Methods inherited from Rpub::Command

#initialize

Constructor Details

This class inherits a constructor from Rpub::Command

Instance Method Details

- (Object) run



4
5
6
7
# File 'lib/rpub/commands/preview.rb', line 4

def run
  options.default :output => 'preview.html'
  source.force_write options.output, Rpub::Preview.new(context, source).formatted
end