Skip to content

Add method for Class.allocate #83

@danielpclark

Description

@danielpclark

Currently to do allocate I have to do this:

let mut pathname_instance = Class::from(
    Class::from_existing("Pathname").send("allocate", None).value()
);

I would much prefer

let mut pathname_instance = Class::from_existing("Pathname").allocate();

I've searched Ruby's C code and couldn't find anywhere where allocate is defined. So I'm at a loss on how to add it directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions