lib/rulebow/system.rb
# Rulesets provide a separate space for rules which are only
# run when the ruleset name is specifically given.
#
# Return [Ruleset]
Rulesets provide a separate space for rules which are only
run when the ruleset name is specifically given.

Return [Ruleset]
Rulesets provide a separate space for rules which are only run when the ruleset name is specifically given . Return [ Ruleset ]
def ruleset(name_and_chain, &block)
      name, chain = parse_ruleset_name(name_and_chain)
      if @rulesets.key?(name)
        ruleset = @rulesets[name]
        ruleset.update(chain, &block)
      else
        ruleset = Ruleset.new(self, name_and_chain, &block)
        @rulesets[name] = ruleset
      end
      ruleset
    end
def ruleset ( name_and_chain , & block ) name , chain = parse_ruleset_name ( name_and_chain ) if @rulesets . key? ( name ) ruleset = @rulesets [ name ] ruleset . update ( chain , & block ) else ruleset = Ruleset . new ( self , name_and_chain , & block ) @rulesets [ name ] = ruleset end ruleset end
Rulesets provide a separate space for rules which are only
run when the ruleset name is specifically given.
Rulesets provide a separate space for rules which are only run when the ruleset name is specifically given .
name_and_chain
<not_specific>
block
<not_specific>