D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
opt
/
alt
/
ruby33
/
share
/
ruby
/
reline
/
key_actor
/
Filename :
composite.rb
back
Copy
class Reline::KeyActor::Composite def initialize(key_actors) @key_actors = key_actors end def matching?(key) @key_actors.any? { |key_actor| key_actor.matching?(key) } end def get(key) @key_actors.each do |key_actor| func = key_actor.get(key) return func if func end nil end end