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 17 |
# File 'lib/guard/gimli.rb', line 11 def initialize(watchers = [], = {}) super @options = { :outputdir => nil, :stylesheet => 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
26 27 28 |
# File 'lib/guard/gimli.rb', line 26 def run_on_change(paths) converter.reload(paths) end |
#start ⇒ Object
19 20 21 |
# File 'lib/guard/gimli.rb', line 19 def start @converter = Converter.new(@options) end |
#stop ⇒ Object
23 24 |
# File 'lib/guard/gimli.rb', line 23 def stop end |