Exception: Cri::CommandDSL::AlreadySpecifiedAsNoParams
- Defined in:
- lib/cri/command_dsl.rb
Overview
Error that will be raised when specifying a parameter after the command is already declared as taken no params.
Instance Method Summary collapse
-
#initialize(param, command) ⇒ AlreadySpecifiedAsNoParams
constructor
A new instance of AlreadySpecifiedAsNoParams.
Constructor Details
#initialize(param, command) ⇒ AlreadySpecifiedAsNoParams
Returns a new instance of AlreadySpecifiedAsNoParams.
10 11 12 |
# File 'lib/cri/command_dsl.rb', line 10 def initialize(param, command) super("Attempted to specify a parameter #{param.inspect} to the command #{command.name.inspect}, which is already specified as taking no params. Suggestion: remove the #no_params call.") end |