PHP 8.2.31
Preview: composite.rb Size: 324 B
//proc/thread-self/root/opt/alt/ruby33/share/ruby/reline/key_actor/composite.rb

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

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
500 B lrw-r--r-- 2026-04-07 13:52:15
Edit Download
324 B lrw-r--r-- 2026-04-07 13:52:15
Edit Download
8.04 KB lrw-r--r-- 2026-04-07 13:52:15
Edit Download
8.44 KB lrw-r--r-- 2026-04-07 13:52:15
Edit Download
7.97 KB lrw-r--r-- 2026-04-07 13:52:15
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).