Class: Builder::BlankSlate

Inherits:
Object show all
Defined in:
lib/action_view/vendor/builder/blankslate.rb

Overview

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

Direct Known Subclasses

XmlBase

Class Method Summary collapse

Class Method Details

.hide(name) ⇒ Object



19
20
21
22
23
# File 'lib/action_view/vendor/builder/blankslate.rb', line 19

def hide(name)
 undef_method name if
   instance_methods.include?(name.to_s) and
   name !~ /^(__|instance_eval)/
end