Class: Bogus::RecordsDoubleInteractions

Inherits:
Object
  • Object
show all
Extended by:
Takes
Defined in:
lib/bogus/contracts/records_double_interactions.rb

Instance Method Summary collapse

Methods included from Takes

takes

Instance Method Details

#record(object, method_name, args, &block) ⇒ Object



7
8
9
10
# File 'lib/bogus/contracts/records_double_interactions.rb', line 7

def record(object, method_name, args, &block)
  fake_name = fake_registry.name(object)
  doubled_interactions.record(fake_name, method_name, *args, &block) if fake_name
end