Class: Gimme::StubbingStore
Instance Method Summary collapse
Methods inherited from Store
#clear, #get, #initialize, #reset, #set
Constructor Details
This class inherits a constructor from Gimme::Store
Instance Method Details
#invoke(double, method, args) ⇒ Object
5 6 7 8 9 |
# File 'lib/gimme/stubbing_store.rb', line 5 def invoke(double, method, args) if stubbing = get(double, method, args) stubbing.call end end |