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
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
/0numbered folders are for, where0applies to all versions and something like/3.2.0allows 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?
Ta,
Henry