Class: Bogus::ResetsOverwrittenClasses

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

Instance Method Summary collapse

Methods included from Takes

takes

Instance Method Details

#resetObject



7
8
9
10
11
12
# File 'lib/bogus/fakes/resets_overwritten_classes.rb', line 7

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