Yields:
Raises:
8 9 10 11 12
# File 'lib/scoring_rules.rb', line 8 def scoring_rules raise(ArgumentError, "You must supply a block with the rules") unless block_given? self.ruleset = Ruleset.new yield self.ruleset end