class FlexMock::ProcMatcher

Match only things where the block evaluates to true.

Public Class Methods

new(&block) click to toggle source
# File lib/flexmock/argument_matchers.rb, line 44
def initialize(&block)
  @block = block
end

Public Instance Methods

===(target) click to toggle source
# File lib/flexmock/argument_matchers.rb, line 47
def ===(target)
  @block.call(target)
end
inspect() click to toggle source
# File lib/flexmock/argument_matchers.rb, line 50
def inspect
  "on{...}"
end