Class: AndAnd::BlankSlate

Inherits:
BasicObject
Defined in:
lib/andand.rb,
lib/andand.rb

Direct Known Subclasses

MockReturningMe, ProxyReturningMe

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBlankSlate

Returns a new instance of BlankSlate.



113
114
115
# File 'lib/andand.rb', line 113

def initialize
  BlankSlate.wipe
end

Class Method Details

.wipeObject



110
111
112
# File 'lib/andand.rb', line 110

def self.wipe
  instance_methods.reject { |m| m =~ /^__/ }.each { |m| undef_method m }
end