class Object

Constants

MonkeyLib

Public Instance Methods

autoloader?() click to toggle source
# File lib/monkey/autoloader.rb, line 15
def autoloader?
  is_a? Monkey::Autoloader or (respond_to? :parent and parent != self and parent.autoloader?)
end
const_missing(const_name) click to toggle source
# File lib/monkey/autoloader.rb, line 6
def const_missing(const_name)
  if respond_to? :parent and parent.autoloader? and not is_a? Monkey::Autoloader
    extend Monkey::Autoloader
    const_missing const_name
  else
    Monkey.invisible(__FILE__) { const_missing_without_detection const_name }
  end
end
const_missing_without_detection(const_name) click to toggle source
Alias for: const_missing
constantize() click to toggle source
# File lib/monkey/backend/extlib.rb, line 9
def constantize
  Extlib::Inflection.constantize(self)
end
hash() click to toggle source
# File lib/monkey/hash_fix.rb, line 2
def hash; to_a.hash end
setup() click to toggle source
# File lib/monkey/backend/extlib.rb, line 2
def setup
  load_libs :object, :string, :inflection
  missing :parent, :extract_options, :tap
  ::Object.class_eval { alias singleton_class meta_class }
  ::String.class_eval do
    alias camelcase to_const_string
    alias underscore to_const_path
    def constantize
      Extlib::Inflection.constantize(self)
    end
  end
end
version(default = "0") click to toggle source
# File lib/monkey/backend/active_support.rb, line 24
def version(default = "0")
  load_lib :version
  @version ||= ActiveSupport::VERSION::STRING or super
rescue NameError
  super
end