Sha256: ff16063e2c63584b1ada65a6a5c9c0c8e3cad7eff90cdc6820b5019f93e35178

Contents?: true

Size: 354 Bytes

Versions: 4

Compression:

Stored size: 354 Bytes

Contents

module Bogus
  class AddsRecording
    extend Takes

    takes :create_proxy_class, :overwrites_classes,
      :overwritten_classes

    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
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bogus-0.1.7 lib/bogus/contracts/adds_recording.rb
bogus-0.1.6 lib/bogus/contracts/adds_recording.rb
bogus-0.1.5 lib/bogus/contracts/adds_recording.rb
bogus-0.1.4 lib/bogus/contracts/adds_recording.rb