Module: FayeRails::Matcher

Defined in:
lib/faye-rails/matcher.rb

Class Method Summary collapse

Class Method Details

.match?(pattern, value) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
6
# File 'lib/faye-rails/matcher.rb', line 3

def self.match?(pattern, value)
  return false if value.include? "\0"
  File.fnmatch? pattern, value
end