Class: BasicObject

Defined in:
lib/tongo.rb

Direct Known Subclasses

Tongo::Context

Constant Summary collapse

KEEP_METHODS =
%w"__id__ __send__ instance_eval == equal? initialize"

Class Method Summary collapse

Class Method Details

.remove_methods!Object



5
6
7
8
# File 'lib/tongo.rb', line 5

def self.remove_methods!
  m = (private_instance_methods + instance_methods) - KEEP_METHODS
  m.each{|m| undef_method(m)}
end