类 Reline::KeyActor::Composite

公共类方法

new(key_actors) 点击切换源代码
# File reline/key_actor/composite.rb, line 2
def initialize(key_actors)
  @key_actors = key_actors
end

公共实例方法

get(key) 点击切换源代码
# File reline/key_actor/composite.rb, line 10
def get(key)
  @key_actors.each do |key_actor|
    func = key_actor.get(key)
    return func if func
  end
  nil
end
matching?(key) 点击切换源代码
# File reline/key_actor/composite.rb, line 6
def matching?(key)
  @key_actors.any? { |key_actor| key_actor.matching?(key) }
end