Sha256: 829842a3160c6722f2c4fed89a609fa72af6074feb34843d2c7cea1c609e91cb
Contents?: true
Size: 667 Bytes
Versions: 1
Compression:
Stored size: 667 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 if conclusion = quorum.acknowledge(characteristics, considerations.dup) ::Leap::Report.new self, quorum => conclusion end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
leap-0.3.1 | lib/leap/committee.rb |