Class: Wicked::BlankSlate
- Inherits:
- BasicObject
- Defined in:
- lib/wicked.rb,
lib/wicked.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ BlankSlate
constructor
A new instance of BlankSlate.
Constructor Details
#initialize ⇒ BlankSlate
Returns a new instance of BlankSlate.
87 88 89 |
# File 'lib/wicked.rb', line 87 def initialize BlankSlate.wipe end |
Class Method Details
.wipe ⇒ Object
84 85 86 |
# File 'lib/wicked.rb', line 84 def self.wipe instance_methods.reject { |m| m =~ /^__/ }.each { |m| undef_method m } end |