class Filigree::LiteralPattern
A pattern that forces an equality comparison
Public Instance Methods
match?(object, _)
click to toggle source
Test the object for equality to the pattern element.
@param [Object] object Object
to test pattern against
@return [Boolean]
# File lib/filigree/match.rb, line 390 def match?(object, _) object == @pattern_elem end
weight()
click to toggle source
# File lib/filigree/match.rb, line 394 def weight 0 end