Class: Reline::KeyActor::Base
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Inherits: | Object |
Defined in: | lib/reline/key_actor/base.rb |
Constant Summary
-
MAPPING =
# File 'lib/reline/key_actor/base.rb', line 2Array.new(256)
Class Method Summary
- .new ⇒ Base constructor
Instance Method Summary
Constructor Details
.new ⇒ Base
# File 'lib/reline/key_actor/base.rb', line 8
def initialize @default_key_bindings = {} end
Instance Method Details
#default_key_bindings
[ GitHub ]# File 'lib/reline/key_actor/base.rb', line 12
def default_key_bindings @default_key_bindings end
#get_method(key)
[ GitHub ]# File 'lib/reline/key_actor/base.rb', line 4
def get_method(key) self.class::MAPPING[key] end
#reset_default_key_bindings
[ GitHub ]# File 'lib/reline/key_actor/base.rb', line 16
def reset_default_key_bindings @default_key_bindings.clear end