Exception: Slop::MissingArgument
- Defined in:
- lib/slop/error.rb
Overview
Raised when an option that expects an argument is executed without one. Suppress with the ‘suppress_errors` config option.
Instance Attribute Summary collapse
-
#flags ⇒ Object
readonly
Returns the value of attribute flags.
Instance Method Summary collapse
-
#initialize(msg, flags) ⇒ MissingArgument
constructor
Get all the flags that matches the option with the missing argument.
Constructor Details
#initialize(msg, flags) ⇒ MissingArgument
Get all the flags that matches the option with the missing argument
19 20 21 22 |
# File 'lib/slop/error.rb', line 19 def initialize(msg, flags) super(msg) @flags = flags end |
Instance Attribute Details
#flags ⇒ Object (readonly)
Returns the value of attribute flags.
15 16 17 |
# File 'lib/slop/error.rb', line 15 def flags @flags end |