Project

General

Profile

Actions

Feature #6210

closed

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

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

Status:
Closed
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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0