Class: Bogus::OverwrittenClasses

Inherits:
Object
  • Object
show all
Defined in:
lib/bogus/fakes/overwriten_classes.rb

Instance Method Summary collapse

Instance Method Details

#add(name, klass) ⇒ Object



3
4
5
# File 'lib/bogus/fakes/overwriten_classes.rb', line 3

def add(name, klass)
  classes << [name, klass]
end

#classesObject



11
12
13
# File 'lib/bogus/fakes/overwriten_classes.rb', line 11

def classes
  @classes ||= []
end

#clearObject



7
8
9
# File 'lib/bogus/fakes/overwriten_classes.rb', line 7

def clear
  @classes = []
end