class FlexMock::ProcMatcher
Match only things where the block evaluates to true.
Public Class Methods
Source
# File lib/flexmock/argument_matchers.rb, line 44 def initialize(&block) @block = block end
Public Instance Methods
Source
# File lib/flexmock/argument_matchers.rb, line 47 def ===(target) @block.call(target) end