Method: Matchete::ClassMethods#exact

Defined in:
lib/matchete.rb

#exact(value) ⇒ Object

Matches an exact value useful if you want to match a string starting with ‘#’ or the value of a class exact(Integer) matches Integer, not 2



45
46
47
# File 'lib/matchete.rb', line 45

def exact(value)
  -> arg { arg == value }
end