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/facets.rb, line 7
def constantize
  constant to_const_string
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/backports.rb, line 2
def setup
  load_libs "tools", "1.8.7/kernel", :rails => [:array, :string]
  missing :parent, :singleton_class
  ::String.class_eval do
    alias camelcase camelize
    alias to_const_string camelize
    alias to_const_path underscore
  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