Sha256: 7ffd2a017d6d70e05735052f3a8f6e027cdb57a15915063bd3744ed1c2eb3598
Contents?: true
Size: 578 Bytes
Versions: 3
Compression:
Stored size: 578 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 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
leap-0.2.2 | lib/leap/committee.rb |
leap-0.2.1 | lib/leap/committee.rb |
leap-0.2.0 | lib/leap/committee.rb |