Class: RubyJard::KeyBinding

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_jard/key_binding.rb

Overview

A key binding object

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actionObject (readonly)

Returns the value of attribute action.



7
8
9
# File 'lib/ruby_jard/key_binding.rb', line 7

def action
  @action
end

#sequenceObject (readonly)

Returns the value of attribute sequence.



7
8
9
# File 'lib/ruby_jard/key_binding.rb', line 7

def sequence
  @sequence
end