Sha256: 195a7c9c80cd45e00b9c9fec330659a3f8336fc55335f6218307b629a9417b3c
Contents?: true
Size: 582 Bytes
Versions: 4
Compression:
Stored size: 582 Bytes
Contents
module Leap class Committee attr_reader :name, :quorums def initialize(name) @name = name @quorums = [] end def report(characteristics, considerations) quorums.grab do |quorum| next unless quorum.satisfied_by? characteristics quorum.acknowledge characteristics, considerations.dup end end include ::Blockenspiel::DSL def quorum(name, options = {}, &blk) @quorums << ::Leap::Quorum.new(name, options, blk) end def default(&blk) quorum 'default', {}, &blk end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
leap-0.2.6 | lib/leap/committee.rb |
leap-0.2.5 | lib/leap/committee.rb |
leap-0.2.4 | lib/leap/committee.rb |
leap-0.2.3 | lib/leap/committee.rb |