class Alfred::Handler::Controller
Public Class Methods
new()
click to toggle source
# File lib/alfred/handler.rb, line 100 def initialize @handlers = SortedSet.new @status = {:break => [:break, :exclusive]} end
Public Instance Methods
each() { |h| ... }
click to toggle source
# File lib/alfred/handler.rb, line 114 def each return enum_for(__method__) unless block_given? @handlers.each do |h| yield(h) end end
each_handler() { |h| ... }
click to toggle source
# File lib/alfred/handler.rb, line 122 def each_handler return enum_for(__method__) unless block_given? @handlers.each do |h| yield(h) break if @status[:break].include?(h.status) end end
empty?()
click to toggle source
# File lib/alfred/handler.rb, line 110 def empty? @handlers.empty? end
register(handler)
click to toggle source
# File lib/alfred/handler.rb, line 105 def register(handler) raise InvalidArgument unless handler.is_a? ::Alfred::Handler::Base @handlers.add(handler) end