Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/configuratron/blank_slate.rb
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
48 |
# File 'lib/configuratron/blank_slate.rb', line 48 alias_method :blank_slate_method_added, :method_added |
.find_hidden_method(name) ⇒ Object
59 60 61 |
# File 'lib/configuratron/blank_slate.rb', line 59 def find_hidden_method(name) nil end |
.method_added(name) ⇒ Object
Detect method additions to Object and remove them in the BlankSlate class.
52 53 54 55 56 57 |
# File 'lib/configuratron/blank_slate.rb', line 52 def method_added(name) result = blank_slate_method_added(name) return result if self != Object BlankSlate.hide(name) result end |