Class Builder::BlankSlate
In: vendor/rails/activesupport/lib/active_support/vendor/builder/blankslate.rb
Parent: Object

BlankSlate 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).

Methods

hide  

Public Class methods

Hide the method named name in the BlankSlate class. Don‘t hide instance_eval or any method beginning with "__".

[Source]

    # File vendor/rails/activesupport/lib/active_support/vendor/builder/blankslate.rb, line 22
22:       def hide(name)
23:         undef_method name if
24:           instance_methods.include?(name.to_s) and
25:           name !~ /^(__|instance_eval)/
26:       end

[Validate]