Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method for Class.allocate #83

Open
danielpclark opened this issue Feb 8, 2018 · 0 comments
Open

Add method for Class.allocate #83

danielpclark opened this issue Feb 8, 2018 · 0 comments

Comments

@danielpclark
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant