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
Also aliased as: const_missing_without_detection
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/active_support.rb, line 2 def setup load_lib :version expects_module "::ActiveSupport::CoreExtensions::String::Inflections" if version < "3" load_libs :core_ext => %w[array/extract_options string/inflections module/introspection] if version < "3" begin load_libs "core_ext/object/singleton_class" rescue LoadError load_libs "core_ext/object/metaclass" ::Object.send(:alias_method, :singleton_class, :metaclass) end load_libs "core_ext/object/misc" ::Array.send :include, ::ActiveSupport::CoreExtensions::Array::ExtractOptions ::Module.send :include, ::ActiveSupport::CoreExtensions::Module ::String.send :include, ::ActiveSupport::CoreExtensions::String::Inflections else load_libs "core_ext/kernel/singleton_class" end ::String.send(:alias_method, :to_const_string, :camelcase) ::String.send(:alias_method, :to_const_path, :underscore) end
version(default = "0")
click to toggle source
Calls superclass method
# 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