Exception: GitShizzle::Dsl::CommandDefinitionError
- Defined in:
- lib/git_shizzle/dsl/command_definition_error.rb
Instance Method Summary collapse
-
#initialize(command_or_identifier, message) ⇒ CommandDefinitionError
constructor
A new instance of CommandDefinitionError.
Constructor Details
#initialize(command_or_identifier, message) ⇒ CommandDefinitionError
Returns a new instance of CommandDefinitionError.
5 6 7 8 9 10 11 12 13 |
# File 'lib/git_shizzle/dsl/command_definition_error.rb', line 5 def initialize(command_or_identifier, ) if command_or_identifier.respond_to? :identifier identifier = command_or_identifier.identifier else identifier = command_or_identifier end super "Command '#{identifier}': #{message}" end |