Class: Guard::Tay

Inherits:
Guard
  • Object
show all
Includes:
Tay::CLI::Helpers
Defined in:
lib/guard/tay.rb

Instance Method Summary collapse

Constructor Details

#initialize(watchers = [], options = {}) ⇒ Tay

Returns a new instance of Tay.



10
11
12
13
# File 'lib/guard/tay.rb', line 10

def initialize(watchers = [], options = {})
  options = munge_options(options)
  super
end

Instance Method Details

#run_allObject

Run all simply recompiles all the things



17
18
19
# File 'lib/guard/tay.rb', line 17

def run_all
  build_extension
end

#run_on_change(paths) ⇒ Object

Recompile the current extension when a file is changed. If the Tayfile was changed, validate it too.



24
25
26
# File 'lib/guard/tay.rb', line 24

def run_on_change(paths)
  build_extension
end

#run_on_deletion(paths) ⇒ Object

Recompile the current extension when a file is deleted



30
31
32
# File 'lib/guard/tay.rb', line 30

def run_on_deletion(paths)
  build_extension
end