Parent

Files

Guard::LiveReload

Attributes

options[RW]
reactor[RW]

Public Class Methods

new(watchers = [], options = {}) click to toggle source

Guard methods =

# File lib/guard/livereload.rb, line 15
def initialize(watchers = [], options = {})
  super
  @options = {
    :host => '0.0.0.0',
    :port => '35729',
    :apply_css_live => true,
    :override_url => false,
    :grace_period => 0
  }.update(options)
end

Public Instance Methods

run_on_changes(paths) click to toggle source
# File lib/guard/livereload.rb, line 34
def run_on_changes(paths)
  sleep options[:grace_period]
  reactor.reload_browser(paths)
end
start() click to toggle source
# File lib/guard/livereload.rb, line 26
def start
  @reactor = Reactor.new(options)
end
stop() click to toggle source
# File lib/guard/livereload.rb, line 30
def stop
  reactor.stop
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.