Class: Guard::Focus
- Extended by:
- Forwardable
- Defined in:
- lib/guard/focus.rb,
lib/guard/focus/libraries.rb
Defined Under Namespace
Classes: Libraries
Instance Attribute Summary collapse
-
#focused ⇒ Object
readonly
Returns the value of attribute focused.
-
#library ⇒ Object
readonly
Returns the value of attribute library.
-
#paths ⇒ Object
readonly
Returns the value of attribute paths.
Instance Method Summary collapse
-
#initialize(watchers = [], options = {}) ⇒ Focus
constructor
A new instance of Focus.
- #run_all ⇒ Object
- #run_on_change(files) ⇒ Object
Constructor Details
Instance Attribute Details
#focused ⇒ Object (readonly)
Returns the value of attribute focused.
13 14 15 |
# File 'lib/guard/focus.rb', line 13 def focused @focused end |
#library ⇒ Object (readonly)
Returns the value of attribute library.
13 14 15 |
# File 'lib/guard/focus.rb', line 13 def library @library end |
#paths ⇒ Object (readonly)
Returns the value of attribute paths.
13 14 15 |
# File 'lib/guard/focus.rb', line 13 def paths @paths end |
Instance Method Details
#run_all ⇒ Object
20 21 22 |
# File 'lib/guard/focus.rb', line 20 def run_all success?([base_path]) end |
#run_on_change(files) ⇒ Object
24 25 26 |
# File 'lib/guard/focus.rb', line 24 def run_on_change(files) success?(files) end |