Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
OptionParser::Arguable#options=
(::OptionParser? opt) -> untyped
options=(opt)
lib/optparse.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/optparse.rb, line 2338
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.