Class: Module

Inherits:
Object
  • Object
show all
Defined in:
lib/lazy.rb

Instance Method Summary collapse

Instance Method Details

#lazy_rb_method_addedObject



212
# File 'lib/lazy.rb', line 212

alias lazy_rb_method_added method_added

#method_added(name) ⇒ Object



213
214
215
216
217
218
219
220
221
# File 'lib/lazy.rb', line 213

def method_added( name )
  lazy_rb_method_added( name )
  if Lazy::Promise < self
    unless Lazy::Promise.instance_methods( true ).include? name.to_s
      Lazy::Promise.class_eval { undef_method name }
    end
  end
  nil
end