Unknown property 'to_ary' for option (RuntimeError)

Dear All,

I am getting the following error in Ruby:

/opt/ruby/lib/ruby/gems/2.3.0/gems/OptionParser-0.5.1/lib/commandline/optionparser/option.rb:171:in
`method_missing’: Unknown property ‘to_ary’ for option (RuntimeError)

I don’t know, how to resolve the “Unknown property ‘to_ary’ for option”
error. Any hints will be highly appreciated.

Thank You!
Hamayun

Could be a consequence from an incorrect usage of OptionParser
(although, atmittedly, it should even then not raise this exception), or
a bug in the Ruby version you are using. When you google for this error,
you will see that there had been bug reports for such a bug.

I suggest that you provide a minimal example showing this problem and
report it.