Exception: Slop::UnknownOption
- Defined in:
- lib/slop/error.rb
Overview
Raised when an unknown option is parsed. Suppress with the ‘suppress_errors` config option.
Instance Attribute Summary collapse
-
#flag ⇒ Object
readonly
Returns the value of attribute flag.
Instance Method Summary collapse
-
#initialize(msg, flag) ⇒ UnknownOption
constructor
A new instance of UnknownOption.
Constructor Details
#initialize(msg, flag) ⇒ UnknownOption
Returns a new instance of UnknownOption.
30 31 32 33 |
# File 'lib/slop/error.rb', line 30 def initialize(msg, flag) super(msg) @flag = flag end |
Instance Attribute Details
#flag ⇒ Object (readonly)
Returns the value of attribute flag.
28 29 30 |
# File 'lib/slop/error.rb', line 28 def flag @flag end |