Module: NoBacksies::SingletonMethodUndefined

Defined in:
lib/no_backsies.rb

Overview

Callback system for #singleton_method_undefined.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.append_features(base) ⇒ Object



269
270
271
272
# File 'lib/no_backsies.rb', line 269

def self.append_features(base)
  base.extend CallbackMethods
  base.extend self
end

Instance Method Details

#singleton_method_undefined(method) ⇒ Object



275
276
277
278
279
280
281
# File 'lib/no_backsies.rb', line 275

def singleton_method_undefined(method)
  if defined?(super)
    callback_invoke(:singleton_method_undefined, method){ super(method) }
  else
    callback_invoke(:singleton_method_undefined, method)
  end
end