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

Make Node#class_constructor? aware of Data.define and numbered parameters #255

Merged

Commits on Feb 7, 2023

  1. Make Node#class_construcor? aware of Ruby 3.2's Data.define

    Ruby 3.2 introduced immutable `Data.define`. Since this is similar to `Struct.new`,
    `Node#class_constructor` will handle it in the same way.
    koic committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    b49489e View commit details
    Browse the repository at this point in the history
  2. Make Node#class_constructor? aware of Ruby 2.7's numbered parameters

    `Class.new`, `Module.new`, `Struct.new`, and `Data.define` take themselves as a block parameter.
    These are the same when using numbered block parameter.
    koic committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    f475a17 View commit details
    Browse the repository at this point in the history