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.
Source Code
# File optparse.rb, line 1694 def options=(opt) unless @optparse = opt class << self undef_method(:options) undef_method(:options=) end end end
<code/>and<pre/>for code samples.