search for: this_return

Displaying 1 result from an estimated 1 matches for "this_return".

Did you mean: the_return
2006 Sep 22
2
foo.expects(:blah).returns(10).then(11) syntax
...mbda{ raise exception, message } + return_value << lambda{ raise exception, message } self end def invoke @invoked += 1 yield(*@parameters_to_yield) if yield? and block_given? - @return_value.is_a?(Proc) ? @return_value.call : @return_value + this_return = return_value.size > 1 ? return_value.shift : return_value.first + this_return.is_a?(Proc) ? this_return.call : this_return end def verify