Method: FlexMock#method
- Defined in:
- lib/gems/flexmock-0.8.3/lib/flexmock/core.rb
#method(sym) ⇒ Object
Override the built-in method to include the mocked methods.
130 131 132 133 134 135 136 137 138 |
# File 'lib/gems/flexmock-0.8.3/lib/flexmock/core.rb', line 130 def method(sym) @expectations[sym] || super rescue NameError => ex if @ignore_missing proc { FlexMock.undefined } else raise ex end end |