Class: Bogus::AddsRecording

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

Instance Method Summary collapse

Methods included from Takes

takes

Instance Method Details

#add(name, klass) ⇒ Object



8
9
10
11
12
13
# File 'lib/bogus/contracts/adds_recording.rb', line 8

def add(name, klass)
  new_klass = create_proxy_class.call(name, klass)
  overwrites_classes.overwrite(klass.name, new_klass)
  overwritten_classes.add(klass.name, klass)
  new_klass
end