Class: Numeric
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #matcher(opts = {}) ⇒ Object
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 |