Class: Guard::Cedar
- Inherits:
-
Guard
- Object
- Guard
- Guard::Cedar
- Defined in:
- lib/guard/cedar.rb,
lib/guard/cedar/runner.rb
Defined Under Namespace
Classes: Runner
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(watchers = [], options = {}) ⇒ Cedar
constructor
A new instance of Cedar.
- #run_all ⇒ Object
- #run_on_changes(paths) ⇒ Object
- #start ⇒ Object
Constructor Details
#initialize(watchers = [], options = {}) ⇒ Cedar
Returns a new instance of Cedar.
9 10 11 12 |
# File 'lib/guard/cedar.rb', line 9 def initialize(watchers=[], ={}) @options = super end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/guard/cedar.rb', line 7 def @options end |
Instance Method Details
#run_all ⇒ Object
18 19 20 |
# File 'lib/guard/cedar.rb', line 18 def run_all runner.run end |
#run_on_changes(paths) ⇒ Object
22 23 24 |
# File 'lib/guard/cedar.rb', line 22 def run_on_changes(paths) run_all end |
#start ⇒ Object
14 15 16 |
# File 'lib/guard/cedar.rb', line 14 def start run_all if [:all_on_start] end |