# File lib/flexmock.rb, line 725 725: def method_missing(sym, *args, &block) 726: expectation = @mock.should_receive(sym).and_return(&block) 727: if @strict 728: args = args.collect { |arg| eq(arg) } 729: expectation.with(*args).ordered.once 730: else 731: expectation.with(*args) 732: end 733: expectation 734: end