Exception: CLI::ParserError::ShortNameNotSymbolError
- Inherits:
-
CLI::ParserError
- Object
- ArgumentError
- CLI::ParserError
- CLI::ParserError::ShortNameNotSymbolError
- Defined in:
- lib/cli.rb
Instance Method Summary collapse
-
#initialize(switch_dsl, short) ⇒ ShortNameNotSymbolError
constructor
A new instance of ShortNameNotSymbolError.
Constructor Details
#initialize(switch_dsl, short) ⇒ ShortNameNotSymbolError
Returns a new instance of ShortNameNotSymbolError.
42 43 44 |
# File 'lib/cli.rb', line 42 def initialize(switch_dsl, short) super("short name for #{switch_dsl.switch} has to be of type Symbol, got #{short.class.name}") end |