class Cri::CommandDSL::AlreadySpecifiedWithParams
Error
that will be raised when declaring the command as taking no parameters, when the command is already declared with parameters.
Public Class Methods
new(command)
click to toggle source
# File lib/cri/command_dsl.rb, line 23 def initialize(command) @command = command end
Public Instance Methods
message()
click to toggle source
# File lib/cri/command_dsl.rb, line 27 def message "Attempted to declare the command #{@command.name.inspect} as taking no parameters, but some parameters are already declared for this command. Suggestion: remove the #no_params call." end