Sha256: fd60f4e4d44ac3b9368579e34871c598f7fa7bc5b8cc1f3b986fd4ee84381c1a
Contents?: true
Size: 698 Bytes
Versions: 2
Compression:
Stored size: 698 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.slice(*quorum.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
leap-0.3.3 | lib/leap/committee.rb |
leap-0.3.2 | lib/leap/committee.rb |