Project

General

Profile

Feature #6210

load should provide a way to specify the top-level module

Added by now (Nikolai Weibull) over 5 years ago. Updated about 5 years ago.

Status:
Assigned
Priority:
Normal
Target version:
[ruby-core:43774]

Description

load currently takes an optional second argument that allows you to load into an anonymous and new top-level Module. It would be nice if the second argument could also be a Module that would then be used as the top-level Module. That way one could provide a set of methods that should be available to the content being loaded without having to put them in Kernel.

History

#1 [ruby-core:43777] Updated by luislavena (Luis Lavena) over 5 years ago

  • Assignee set to matz (Yukihiro Matsumoto)
  • Target version set to 2.0.0

Sounds partially like #5643?

#2 [ruby-core:43986] Updated by mame (Yusuke Endoh) over 5 years ago

  • Status changed from Open to Assigned

#3 [ruby-core:48370] Updated by ko1 (Koichi Sasada) about 5 years ago

  • Target version changed from 2.0.0 to next minor

I changed target to next minor because no discussion on it.

Also available in: Atom PDF