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
#
#
#
#==
#!
#!=
respond_to?
Seems to me it should have #id too.
# File lib/more/facets/basicobject.rb, line 33 33: def hide(name) 34: undef_method name if 35: instance_methods.include?(name.to_s) and 36: name !~ /^(__|respond_to\?|instance_eval$|instance_exec$|equal\?$|\=\=$)/ 37: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.