Module: NoBacksies::MethodUndefined

Defined in:
lib/no_backsies.rb

Overview

Callback system for #method_removed.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.append_features(base) ⇒ Object



215
216
217
218
# File 'lib/no_backsies.rb', line 215

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

Instance Method Details

#method_undefined(method) ⇒ Object



221
222
223
224
225
226
227
# File 'lib/no_backsies.rb', line 221

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