module NoBacksies::ConstMissing

Callback system for const_missing.

Unlike other callback mixins, this does NOT invoke super (for obvious reasons).

Public Class Methods

append_features(base) click to toggle source
# File lib/no_backsies.rb, line 343
def self.append_features(base)
  base.extend CallbackMethods
  base.extend self
end

Public Instance Methods

const_missing(const) click to toggle source
Calls superclass method
# File lib/no_backsies.rb, line 349
def const_missing(const)
  if defined?(super)
    callback_invoke(:const_missing, const){ super(const) }
  else
    callback_invoke(:const_missing, const)
  end
end