Method: Context::KeyAssignment#initialize
- Defined in:
- lib/Context/KeyAssignment.rb
#initialize(key, &action) ⇒ KeyAssignment
Creates an assignment where action will be called when key is pressed
10 11 12 13 |
# File 'lib/Context/KeyAssignment.rb', line 10 def initialize(key, &action) @key = key @action = action end |