Module: Kernel

Defined in:
lib/action_view/vendor/builder/blankslate.rb

Overview

Since Ruby is very dynamic, methods added to the ancestors of BlankSlate after BlankSlate is defined will show up in the list of available BlankSlate methods. We handle this by defining a hook in the Object and Kernel classes that will hide any defined

Class Method Summary collapse

Class Method Details

.blank_slate_method_addedObject


35
# File 'lib/action_view/vendor/builder/blankslate.rb', line 35

alias_method :blank_slate_method_added, :method_added

.method_added(name) ⇒ Object


36
37
38
39
40
# File 'lib/action_view/vendor/builder/blankslate.rb', line 36

def method_added(name)
  blank_slate_method_added(name)
  return if self != Kernel
  Builder::BlankSlate.hide(name)
end