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