Unknown property 'to_ary' for option (RuntimeError)

Dear All,

I am getting the following error in Ruby:

`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!

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs