Module: Kernel

Defined in:
lib/package.rb

Instance Method Summary collapse

Instance Method Details

#import(*args) ⇒ Object



147
148
149
150
151
# File 'lib/package.rb', line 147

def import(*args)
  caller_binding = args.last.is_a?(Binding) ? args.pop : binding.of_caller(1)
  args.unshift(caller_binding)
  Package::KernelMethods.import(*args)
end