Class: Rum::Key
- Inherits:
-
Object
- Object
- Rum::Key
- Defined in:
- lib/rum/hotkey_core.rb
Instance Attribute Summary collapse
-
#aliases ⇒ Object
Returns the value of attribute aliases.
-
#id ⇒ Object
Returns the value of attribute id.
-
#modifier ⇒ Object
Returns the value of attribute modifier.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, aliases, id) ⇒ Key
constructor
A new instance of Key.
- #inspect ⇒ Object
- #modifier? ⇒ Boolean
Constructor Details
#initialize(name, aliases, id) ⇒ Key
Returns a new instance of Key.
5 6 7 8 9 10 |
# File 'lib/rum/hotkey_core.rb', line 5 def initialize name, aliases, id @name = name @id = id @aliases = aliases @modifier = false end |
Instance Attribute Details
#aliases ⇒ Object
Returns the value of attribute aliases.
3 4 5 |
# File 'lib/rum/hotkey_core.rb', line 3 def aliases @aliases end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/rum/hotkey_core.rb', line 3 def id @id end |
#modifier ⇒ Object
Returns the value of attribute modifier.
3 4 5 |
# File 'lib/rum/hotkey_core.rb', line 3 def modifier @modifier end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/rum/hotkey_core.rb', line 3 def name @name end |
Instance Method Details
#inspect ⇒ Object
16 17 18 |
# File 'lib/rum/hotkey_core.rb', line 16 def inspect "#<Key:#{name}>" end |
#modifier? ⇒ Boolean
12 13 14 |
# File 'lib/rum/hotkey_core.rb', line 12 def modifier? @modifier end |