Class Methods
lib/reline/key_actor/composite.rb
View on GitHub
# File tmp/rubies/ruby-master/lib/reline/key_actor/composite.rb, line 2
def initialize(key_actors)
@key_actors = key_actors
end
No documentation available
Instance Methods
#
lib/reline/key_actor/composite.rb
View on GitHub
# File tmp/rubies/ruby-master/lib/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
No documentation available
lib/reline/key_actor/composite.rb
View on GitHub
# File tmp/rubies/ruby-master/lib/reline/key_actor/composite.rb, line 6
def matching?(key)
@key_actors.any? { |key_actor| key_actor.matching?(key) }
end
No documentation available