Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/activesupport-2.2.2/lib/active_support/vendor/builder-2.1.2/blankslate.rb
Overview
Same as above, except in Object.
Class Method Summary collapse
- .blank_slate_method_added ⇒ Object
- .find_hidden_method(name) ⇒ Object
-
.method_added(name) ⇒ Object
Detect method additions to Object and remove them in the BlankSlate class.
Class Method Details
.blank_slate_method_added ⇒ Object
79 |
# File 'lib/activesupport-2.2.2/lib/active_support/vendor/builder-2.1.2/blankslate.rb', line 79 alias_method :blank_slate_method_added, :method_added |
.find_hidden_method(name) ⇒ Object
90 91 92 |
# File 'lib/activesupport-2.2.2/lib/active_support/vendor/builder-2.1.2/blankslate.rb', line 90 def find_hidden_method(name) nil end |
.method_added(name) ⇒ Object
Detect method additions to Object and remove them in the BlankSlate class.
83 84 85 86 87 88 |
# File 'lib/activesupport-2.2.2/lib/active_support/vendor/builder-2.1.2/blankslate.rb', line 83 def method_added(name) result = blank_slate_method_added(name) return result if self != Object BlankSlate.hide(name) result end |