Exception: Twterm::KeyMapper::NoSuchCommand
- Inherits:
-
StandardError
- Object
- StandardError
- Twterm::KeyMapper::NoSuchCommand
- Defined in:
- lib/twterm/key_mapper/no_such_command.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
readonly
Returns the value of attribute category.
-
#command ⇒ Object
readonly
Returns the value of attribute command.
Instance Method Summary collapse
- #full_command ⇒ Object
-
#initialize(category, command) ⇒ NoSuchCommand
constructor
A new instance of NoSuchCommand.
- #message ⇒ Object
Constructor Details
#initialize(category, command) ⇒ NoSuchCommand
Returns a new instance of NoSuchCommand.
6 7 8 9 |
# File 'lib/twterm/key_mapper/no_such_command.rb', line 6 def initialize(category, command) @category, @command = category, command super() end |
Instance Attribute Details
#category ⇒ Object (readonly)
Returns the value of attribute category.
4 5 6 |
# File 'lib/twterm/key_mapper/no_such_command.rb', line 4 def category @category end |
#command ⇒ Object (readonly)
Returns the value of attribute command.
4 5 6 |
# File 'lib/twterm/key_mapper/no_such_command.rb', line 4 def command @command end |
Instance Method Details
#full_command ⇒ Object
11 12 13 |
# File 'lib/twterm/key_mapper/no_such_command.rb', line 11 def full_command "#{category}.#{command}" end |
#message ⇒ Object
15 16 17 |
# File 'lib/twterm/key_mapper/no_such_command.rb', line 15 def "No such command: #{full_command}" end |