Class: Guard::CoffeeScript
- Defined in:
- lib/guard/coffeescript.rb,
lib/guard/coffeescript/runner.rb,
lib/guard/coffeescript/inspector.rb
Defined Under Namespace
Instance Method Summary collapse
-
#initialize(watchers = [], options = {}) ⇒ CoffeeScript
constructor
A new instance of CoffeeScript.
- #run_all ⇒ Object
- #run_on_change(paths) ⇒ Object
Constructor Details
#initialize(watchers = [], options = {}) ⇒ CoffeeScript
Returns a new instance of CoffeeScript.
12 13 14 15 16 17 18 19 20 |
# File 'lib/guard/coffeescript.rb', line 12 def initialize(watchers = [], = {}) watchers = [] if !watchers watchers << ::Guard::Watcher.new(%r{#{ .delete(:input) }/(.+\.coffee)}) if [:input] super(watchers, { :bare => false, :shallow => false }.merge()) end |
Instance Method Details
#run_all ⇒ Object
22 23 24 |
# File 'lib/guard/coffeescript.rb', line 22 def run_all run_on_change(Watcher.match_files(self, Dir.glob(File.join('**', '*.coffee')))) end |