class Monkey::Matcher

Public Class Methods

new(&block) click to toggle source
# File lib/monkey/matcher.rb, line 3
def initialize(&block)
  @block = block
end

Public Instance Methods

===(other) click to toggle source
# File lib/monkey/matcher.rb, line 7
def ===(other)
  @block.call(other)
end