Class: Numeric

Inherits:
Object show all
Defined in:
lib/core_extensions.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object Also known as: eql?


88
89
90
91
# File 'lib/core_extensions.rb', line 88

def ==(other)
  return true if other.is_a?(PathString) && other =~ /^:/
  super
end

#matcher(opts = {}) ⇒ Object


85
86
87
# File 'lib/core_extensions.rb', line 85

def matcher(opts={})
  PathString.new(":#{self}")
end