Skip to content

Missing definition for OptionParser attr_accessor :raise_unknown, available since Ruby 3.2.0 #2640

@henrahmagix

Description

@henrahmagix

Looks like it was added in Ruby 3.2.0 but is missing from stdlib/optparse/0/optparse.rbs.

I'm not sure of the process for adding a definition that's only available after a certain Ruby version - is that what the /0 numbered folders are for, where 0 applies to all versions and something like /3.2.0 allows to add a definition that's only available in Ruby >= 3.2.0?

Or is this all compiled from Ruby source comments, and this issue would be best placed on ruby/ruby with a request to update the source comment so it gets compiled?

# Definition to add.
class OptionParser
  attr_accessor raise_unknown: bool
end

Ta,
Henry

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions