Skip to content

RubySet#newSet should be a static method instead of an instance method #6605

@caleb

Description

@caleb

JRuby 9.2.16.0

The newSet method of org.jruby.ext.set.RubySet should be a static method so that users can create sets from Java:

RubySet newSet(final Ruby runtime) {
RubySet set = new RubySet(runtime, getMetaClass());
set.allocHash(runtime);
return set;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions