Module: NoBacksies::SingletonMethodRemoved

Defined in:
lib/no_backsies.rb

Overview

Callback system for #singleton_method_removed.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.append_features(base) ⇒ Object



251
252
253
254
# File 'lib/no_backsies.rb', line 251

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

Instance Method Details

#singleton_method_removed(method) ⇒ Object



257
258
259
260
261
262
263
# File 'lib/no_backsies.rb', line 257

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