# File lib/flexmock/core.rb, line 97 97: def method_missing(sym, *args, &block) 98: flexmock_wrap do 99: if handler = @expectations[sym] 100: args << block if block_given? 101: handler.call(*args) 102: elsif @ignore_missing 103: FlexMock.undefined 104: else 105: super(sym, *args, &block) 106: end 107: end 108: end