lib/guard/livereload.rb in guard-livereload-0.3.1 vs lib/guard/livereload.rb in guard-livereload-0.4.0

- old
+ new

@@ -1,11 +1,11 @@ require 'guard' require 'guard/guard' module Guard class LiveReload < Guard - + attr_accessor :reactor autoload :Reactor, 'guard/livereload/reactor' # ================= # = Guard methods = # ================= @@ -31,15 +31,9 @@ end def run_on_change(paths) sleep @options[:grace_period] reactor.reload_browser(paths) - end - - private - - def reactor - @reactor ||= Reactor.new(@options) end end end