summaryrefslogtreecommitdiff
path: root/lib/reline/key_actor/base.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-04-23 18:09:46 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-04-23 20:08:02 +0900
commitf2cd4f4cd0a1e352fcc48a216127beaeda2b2399 (patch)
tree8e02f39a8df8fa5708e446aeb8d42d45d8a28abe /lib/reline/key_actor/base.rb
parent87cf45a512a7803f266e4782c49e0a99c06a4039 (diff)
IRB is improved with Reline and RDoc, take 2
Diffstat (limited to 'lib/reline/key_actor/base.rb')
-rw-r--r--lib/reline/key_actor/base.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/reline/key_actor/base.rb b/lib/reline/key_actor/base.rb
new file mode 100644
index 0000000000..f4abac55d4
--- /dev/null
+++ b/lib/reline/key_actor/base.rb
@@ -0,0 +1,7 @@
+class Reline::KeyActor::Base
+ MAPPING = Array.new(256)
+
+ def get_method(key)
+ self.class::MAPPING[key]
+ end
+end