Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
OptionParser::Arguable#options=
options=(opt)
lib/optparse.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/optparse.rb, line 2243
def options=(opt)
unless @optparse = opt
class << self
undef_method(:options)
undef_method(:options=)
end
end
end
Sets OptionParser object, when opt is false or nil, methods OptionParser::Arguable#options and OptionParser::Arguable#options= are undefined. Thus, there is no ways to access the OptionParser object via the receiver object.