Skip to content

Commit

Permalink
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1276,7 +1276,7 @@ public NameNode(RubyContext context, SourceSection sourceSection) {
public Object name(RubyModule module) {
CompilerDirectives.transferToInterpreter();

if (!module.hasName()) {
if (!module.hasPartialName()) {
return nil();
}

Original file line number Diff line number Diff line change
@@ -417,7 +417,11 @@ public String getName() {
}

public boolean hasName() {
return name != null || givenBaseName != null;
return name != null;
}

public boolean hasPartialName() {
return hasName() || givenBaseName != null;
}

@Override

0 comments on commit 410cdee

Please sign in to comment.