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
17
# File 'lib/guard/gimli.rb', line 11

def initialize(watchers = [], options = {})
  super
  @options = {
    :outputdir => nil,
    :stylesheet => 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



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

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

#startObject



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

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

#stopObject



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

def stop
end