Sha256: 479bb7651f3f6bb1f73e3d9898a9dbf7a8d223f28e6d95f43f3d5498d5841d07

Contents?: true

Size: 297 Bytes

Versions: 12

Compression:

Stored size: 297 Bytes

Contents

module Bogus
  class ResetsOverwrittenClasses
    extend Takes

    takes :overwritten_classes, :overwrites_classes

    def reset
      overwritten_classes.classes.each do |name, klass|
        overwrites_classes.overwrite(name, klass)
      end
      overwritten_classes.clear
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
bogus-0.1.7 lib/bogus/fakes/resets_overwritten_classes.rb
bogus-0.1.6 lib/bogus/fakes/resets_overwritten_classes.rb
bogus-0.1.5 lib/bogus/fakes/resets_overwritten_classes.rb
bogus-0.1.4 lib/bogus/fakes/resets_overwritten_classes.rb
bogus-0.1.3 lib/bogus/resets_overwritten_classes.rb
bogus-0.1.2 lib/bogus/resets_overwritten_classes.rb
bogus-0.1.1 lib/bogus/resets_overwritten_classes.rb
bogus-0.1.0 lib/bogus/resets_overwritten_classes.rb
bogus-0.0.4 lib/bogus/resets_overwritten_classes.rb
bogus-0.0.3 lib/bogus/resets_overwritten_classes.rb
bogus-0.0.3.rc.2 lib/bogus/resets_overwritten_classes.rb
bogus-0.0.3.rc.1 lib/bogus/resets_overwritten_classes.rb