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

Missing documentation for object_class and array_class #419

Closed
marcandre opened this issue Jun 25, 2020 · 3 comments
Closed

Missing documentation for object_class and array_class #419

marcandre opened this issue Jun 25, 2020 · 3 comments

Comments

@marcandre
Copy link
Member

It's unclear what methods object_class and array_class should respond_to. Is it only .new and #[]= / .new and #<< respectively? This should be documented.

Followup to #413

@hsbt
Copy link
Member

hsbt commented Dec 1, 2023

/cc @BurdetteLamar

@BurdetteLamar
Copy link
Member

/cc @BurdetteLamar

I have no understanding of this, and so don't see how to help.

@byroot
Copy link
Member

byroot commented Oct 18, 2024

Digging into the C and Pure implementations:

  • array_class must respond to #new and return an object that responds to #<<.
  • object_class must respond to #new and return an object that responds to #[]=.

I'll try to update the documentation.

@byroot byroot closed this as completed in 360282c Oct 18, 2024
byroot added a commit that referenced this issue Oct 18, 2024
byroot added a commit that referenced this issue Oct 18, 2024
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

4 participants