Class: LivingStyleGuide::CommandLineInterface
- Inherits:
-
Thor
- Object
- Thor
- LivingStyleGuide::CommandLineInterface
- Defined in:
- lib/livingstyleguide/command_line_interface.rb
Instance Method Summary collapse
Instance Method Details
#compile(input_file = nil, output_file = nil) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/livingstyleguide/command_line_interface.rb', line 8 def compile(input_file = nil, output_file = nil) doc = LivingStyleGuide::Document.new(input_file) do input(input_file) end output doc.render, input_file, output_file end |
#version ⇒ Object
17 18 19 |
# File 'lib/livingstyleguide/command_line_interface.rb', line 17 def version puts "LivingStyleGuide #{LivingStyleGuide::VERSION}" end |