Class: Guard::Gimli

Inherits:
Guard
  • Object
show all
Defined in:
lib/guard/gimli.rb,
lib/guard/gimli/converter.rb

Defined Under Namespace

Classes: Converter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(watchers = [], options = {}) ⇒ Gimli

Returns a new instance of Gimli.



11
12
13
14
15
16
# File 'lib/guard/gimli.rb', line 11

def initialize(watchers = [], options = {})
  super
  @options = {
    :outputdir => nil
  }.update(options)
end

Instance Attribute Details

#converterObject (readonly)

Returns the value of attribute converter.



9
10
11
# File 'lib/guard/gimli.rb', line 9

def converter
  @converter
end

Instance Method Details

#run_on_change(paths) ⇒ Object



25
26
27
# File 'lib/guard/gimli.rb', line 25

def run_on_change(paths)
  converter.reload(paths)
end

#startObject



18
19
20
# File 'lib/guard/gimli.rb', line 18

def start
  @converter = Converter.new(@options)
end

#stopObject



22
23
# File 'lib/guard/gimli.rb', line 22

def stop
end