class Core::Watch::Callbacks::Path
- public
-
Callback
that wraps a path.
Public Class Methods
new(value, **kwargs, &block)
click to toggle source
Calls superclass method
Core::Watch::Callback::new
# File lib/core/watch/callbacks/path.rb, line 14 def initialize(value, **kwargs, &block) super(**kwargs, &block) @path = Pathname(value.to_s) end
Public Instance Methods
match?(path)
click to toggle source
- public
-
Return `true` if this callback matches the path.
# File lib/core/watch/callbacks/path.rb, line 22 def match?(path) @path == path end