Class: Guard::Gimli
- Defined in:
- lib/guard/gimli.rb,
lib/guard/gimli/converter.rb
Defined Under Namespace
Classes: Converter
Instance Attribute Summary collapse
-
#converter ⇒ Object
readonly
Returns the value of attribute converter.
Instance Method Summary collapse
-
#initialize(watchers = [], options = {}) ⇒ Gimli
constructor
A new instance of Gimli.
- #run_on_change(paths) ⇒ Object
- #start ⇒ Object
- #stop ⇒ Object
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 = [], = {}) super @options = { :outputdir => nil }.update() end |
Instance Attribute Details
#converter ⇒ Object (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 |
#start ⇒ Object
18 19 20 |
# File 'lib/guard/gimli.rb', line 18 def start @converter = Converter.new(@options) end |
#stop ⇒ Object
22 23 |
# File 'lib/guard/gimli.rb', line 22 def stop end |