Project

General

Profile

Actions

Bug #21094

open

Module#set_temporary_name does not affect a name of a nested module

Added by andrykonchin (Andrew Konchin) 2 days ago. Updated 2 days ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:120808]

Description

Wondering whether it's intentional and correct behaviour:

m = Module.new
m::N = Module.new
p m::N.name # => "#<Module:0x000000010d0a00b0>::N"

m.set_temporary_name("foo")
p m::N.name # => "#<Module:0x000000010d0a00b0>::N"

I would expect that setting foo as a temporary name changes m::N.name to foo::N.

Actions

Also available in: Atom PDF

Like0
Like1