Module: Spy::Instance::Strategy
- Defined in:
- lib/spy/instance/strategy.rb,
lib/spy/instance/strategy/wrap.rb,
lib/spy/instance/strategy/intercept.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.factory_build(spy) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/spy/instance/strategy.rb', line 8 def factory_build(spy) if spy.original.is_a?(Method) pick_strategy(spy, spy.spied.singleton_class) else pick_strategy(spy, spy.spied) end end |