class Cri::CommandDSL::AlreadySpecifiedAsNoParams

Error that will be raised when specifying a parameter after the command is already declared as taken no params.

Public Class Methods

new(param, command) click to toggle source
# File lib/cri/command_dsl.rb, line 10
def initialize(param, command)
  @param = param
  @command = command
end

Public Instance Methods

message() click to toggle source
# File lib/cri/command_dsl.rb, line 15
def message
  "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