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 45 def initialize(&block) @block = block end
Public Instance Methods
===(target)
click to toggle source
# File lib/flexmock/argument_matchers.rb, line 48 def ===(target) @block.call(target) end
inspect()
click to toggle source
# File lib/flexmock/argument_matchers.rb, line 51 def inspect "on{...}" end