Class: Bogus::AddsRecording
- Inherits:
-
Object
- Object
- Bogus::AddsRecording
- Extended by:
- Takes
- Defined in:
- lib/bogus/contracts/adds_recording.rb
Instance Method Summary collapse
Methods included from 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 |