Exception: Branch::Name::OptionError
- Inherits:
-
StandardError
- Object
- StandardError
- Branch::Name::OptionError
- Defined in:
- lib/branch/name/option_error.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
Instance Method Summary collapse
-
#initialize(msg, command) ⇒ OptionError
constructor
A new instance of OptionError.
- #message ⇒ Object
Constructor Details
#initialize(msg, command) ⇒ OptionError
Returns a new instance of OptionError.
8 9 10 11 12 |
# File 'lib/branch/name/option_error.rb', line 8 def initialize(msg, command) super(msg) @command = command end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
6 7 8 |
# File 'lib/branch/name/option_error.rb', line 6 def command @command end |
Instance Method Details
#message ⇒ Object
14 15 16 |
# File 'lib/branch/name/option_error.rb', line 14 def "ERROR: \"branch-name #{command}\" #{super}" end |