class Guard::Webpack
Constants
- DEFAULT_OPTIONS
Attributes
runner[RW]
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
# File lib/guard/webpack.rb, line 14 def initialize(*args) with_defaults(args[-1]) do |opts| super(opts) @runner = Runner.new(opts) end end
Public Instance Methods
reload()
click to toggle source
# File lib/guard/webpack.rb, line 23 def reload; @runner.restart; end
run_all()
click to toggle source
# File lib/guard/webpack.rb, line 22 def run_all; @runner.restart; end
run_on_modifications(p)
click to toggle source
# File lib/guard/webpack.rb, line 21 def run_on_modifications(p); @runner.restart; end
start()
click to toggle source
# File lib/guard/webpack.rb, line 24 def start; @runner.start; end
stop()
click to toggle source
# File lib/guard/webpack.rb, line 25 def stop; @runner.stop; end
Private Instance Methods
with_defaults(options) { |merge| ... }
click to toggle source
# File lib/guard/webpack.rb, line 29 def with_defaults(options) yield DEFAULT_OPTIONS.merge(options) end