Parent

Methods

Included Modules

Listen::Change

Attributes

listener[RW]

Public Class Methods

new(listener) click to toggle source
# File lib/listen/change.rb, line 10
def initialize(listener)
  @listener = listener
end

Public Instance Methods

change(path, options) click to toggle source
# File lib/listen/change.rb, line 14
def change(path, options)
  change = options[:change]
  cookie = options[:cookie]

  unless cookie
    # TODO: remove silencing here (it's done later)
    return if _silencer.silenced?(path, options[:type])
  end

  if change
    _notify_listener(change, path, cookie ? { cookie: cookie } : {})
  else
    send("_#{options[:type].downcase}_change", path, options)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.