Class: Guard::Sprockets2

Inherits:
Guard
  • Object
show all
Defined in:
lib/guard/sprockets2.rb

Defined Under Namespace

Classes: Compiler

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Sprockets2.



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

def initialize(watchers = [], options = {})
  super
  @compiler = Compiler.new(options)
end

Instance Method Details

#run_allObject



19
20
21
# File 'lib/guard/sprockets2.rb', line 19

def run_all
  compile_assets
end

#run_on_change(paths = []) ⇒ Object



23
24
25
# File 'lib/guard/sprockets2.rb', line 23

def run_on_change(paths = [])
  compile_assets
end

#startObject



15
16
17
# File 'lib/guard/sprockets2.rb', line 15

def start
  compile_assets
end