Checks if a module is loaded without triggering autoload.
Checks if a module is loaded without triggering autoload
Returns:
121 122 123 124
# File 'lib/ruby_ext.rb', line 121 def using?(sym) return false if Object.autoload?(sym) return Object.const_defined?(sym) end