BasicObject provides an abstract base class with no predefined methods (except for __send__ and __id__). BlankSlate is useful as a base class when writing classes that depend upon method_missing (e.g. dynamic proxies).
Hide the method named name in the BlankSlate class. Don't hide instance_eval or any method beginning with "__".
According to 1.9.1 it should have only these methods:
#__send__
instance_eval
instance_exec
equal?
#==
#!
#!=
respond_to?
Seems to me it should have #__id__ too.
# File lib/facets/standard/facets/basicobject.rb, line 33 def hide(name) undef_method name if instance_methods.include?(name.to_s) and name !~ /^(__|respond_to\?|instance_eval$|instance_exec$|equal\?$|\=\=$)/ end
Generated with the Darkfish Rdoc Generator 2.