Class: Guard::Hogan::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/guard/hogan/runner.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Runner

Returns a new instance of Runner.



6
7
8
# File 'lib/guard/hogan/runner.rb', line 6

def initialize(options)
  @options = options
end

Instance Method Details

#run(paths = []) ⇒ Object



10
11
12
13
# File 'lib/guard/hogan/runner.rb', line 10

def run(paths=[])
  templates = paths.collect { |path| compile(path) }    
  write_templates_file(templates, paths)
end