Class: RubyJard::KeyBinding
- Inherits:
-
Object
- Object
- RubyJard::KeyBinding
- Defined in:
- lib/ruby_jard/key_binding.rb
Overview
A key binding object
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#sequence ⇒ Object
readonly
Returns the value of attribute sequence.
Instance Method Summary collapse
-
#initialize(sequence, action) ⇒ KeyBinding
constructor
A new instance of KeyBinding.
Constructor Details
#initialize(sequence, action) ⇒ KeyBinding
Returns a new instance of KeyBinding.
9 10 11 12 |
# File 'lib/ruby_jard/key_binding.rb', line 9 def initialize(sequence, action) @sequence = sequence @action = action end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
7 8 9 |
# File 'lib/ruby_jard/key_binding.rb', line 7 def action @action end |
#sequence ⇒ Object (readonly)
Returns the value of attribute sequence.
7 8 9 |
# File 'lib/ruby_jard/key_binding.rb', line 7 def sequence @sequence end |