Module: Rools

Defined in:
lib/rools.rb,
lib/rools/base.rb,
lib/rools/rule.rb,
lib/rools/facts.rb,
lib/rools/errors.rb,
lib/rools/version.rb,
lib/rools/rule_set.rb,
lib/rools/csv_table.rb,
lib/rools/default_parameter_proc.rb

Overview

Facts are collections or recordsets created by the user

Defined Under Namespace

Classes: Base, CsvTable, DefaultParameterProc, Facts, Rule, RuleCheckError, RuleConsequenceError, RuleError, RuleLoadingError, RuleSet

Constant Summary collapse

ROOLS_VERSION =
'0.4'
ROOLS_COVERAGE =
100.0
@@rule_sets =
{}

Class Method Summary collapse

Class Method Details

.open(path = nil, &b) ⇒ Object

open aliases Rools::RuleSet.new, and caches RuleSets loaded by path



12
13
14
# File 'lib/rools.rb', line 12

def self.open(path = nil, &b)
  path.nil? ? Rools::RuleSet.new(path, &b) : (@@rule_sets[path] ||= Rools::RuleSet.new(path))
end