# File lib/flexmock/recorder.rb, line 59 59: def method_missing(sym, *args, &block) 60: location = caller.first 61: expectation = @mock.flexmock_define_expectation(location, sym).and_return(&block) 62: if strict? 63: args = args.collect { |arg| eq(arg) } 64: expectation.with(*args).ordered.once 65: else 66: expectation.with(*args) 67: end 68: expectation 69: end