Class: TTY::Option::ParseError
Overview
Raised during command line input parsing
Direct Known Subclasses
InvalidArgument, InvalidArity, InvalidConversionArgument, MissingArgument, MissingParameter, UnpermittedArgument
Instance Attribute Summary collapse
-
#param ⇒ Object
Returns the value of attribute param.
Instance Method Summary collapse
-
#format_value(value) ⇒ String
Format value.
Instance Attribute Details
#param ⇒ Object
Returns the value of attribute param.
24 25 26 |
# File 'lib/tty/option/errors.rb', line 24 def param @param end |
Instance Method Details
#format_value(value) ⇒ String
Format value
38 39 40 |
# File 'lib/tty/option/errors.rb', line 38 def format_value(value) value.respond_to?(:to_ary) ? value.join(":") : value.to_s end |