Class: Guard::PhantomJsJasmine
- Inherits:
-
Plugin
- Object
- Plugin
- Guard::PhantomJsJasmine
- Includes:
- PhantomJsJasmineCli
- Defined in:
- lib/guard/phantomjs-jasmine.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ PhantomJsJasmine
constructor
Initialize Guard::PhantomJsJasmine.
-
#run_on_change(paths) ⇒ Object
Gets called when watched paths and files have changes.
-
#start ⇒ Object
Gets called once when Guard starts.
Methods included from PhantomJsJasmineCli
Constructor Details
#initialize(options = {}) ⇒ PhantomJsJasmine
Initialize Guard::PhantomJsJasmine
14 15 16 17 18 |
# File 'lib/guard/phantomjs-jasmine.rb', line 14 def initialize( = {}) super @options = end |
Instance Method Details
#run_on_change(paths) ⇒ Object
Gets called when watched paths and files have changes.
28 29 30 31 32 |
# File 'lib/guard/phantomjs-jasmine.rb', line 28 def run_on_change(paths) return if paths.empty? run(@options) end |
#start ⇒ Object
Gets called once when Guard starts.
21 22 23 |
# File 'lib/guard/phantomjs-jasmine.rb', line 21 def start ::Guard::UI.info( "#{self.class} is running!" ) end |