Method: FlexMock::ArgumentTypes#on

Defined in:
lib/gems/flexmock-0.8.3/lib/flexmock/argument_types.rb

#on(&block) ⇒ Object

Return an argument matcher that matches any object, that when passed to the supplied block, will cause the block to return true.



36
37
38
# File 'lib/gems/flexmock-0.8.3/lib/flexmock/argument_types.rb', line 36

def on(&block)
  ProcMatcher.new(&block)
end