123456789_123456789_123456789_123456789_123456789_

Class: Reline::KeyActor::Base

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Inherits: Object
Defined in: lib/reline/key_actor/base.rb

Constant Summary

Class Method Summary

Instance Method Summary

Constructor Details

.newBase

[ GitHub ]

  
# 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