Module: Kernel

Defined in:
lib/autorequire.rb

Instance Method Summary collapse

Instance Method Details

#ConstProxy(*a, &b) ⇒ Object



108
# File 'lib/autorequire.rb', line 108

def ConstProxy(*a, &b) ConstProxy.new(*a, &b) end

#ConstProxy?(other) ⇒ Boolean

Returns:

  • (Boolean)


109
# File 'lib/autorequire.rb', line 109

def ConstProxy?(other) other.is_a?(Module) and other.ancestors.include?(ConstProxy) end