Module: Kernel
- Defined in:
- lib/mega/timer.rb,
lib/mega/1.rb,
lib/mega/nack.rb,
lib/mega/reference.rb,
lib/mega/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
Instance Method Summary collapse
- #nack(err = nil, *data, &ctrl) ⇒ Object
- #ref(x) ⇒ Object
- #timed {|timer = Timer.new.start| ... } ⇒ Object
Class Method Details
.blank_slate_method_added ⇒ Object
41 |
# File 'lib/mega/blankslate.rb', line 41 alias_method :blank_slate_method_added, :method_added |
.method_added(name) ⇒ Object
42 43 44 45 46 |
# File 'lib/mega/blankslate.rb', line 42 def method_added(name) blank_slate_method_added(name) return if self != Kernel BlankSlate.hide(name) end |