Sha256: 256a47306a3d3d43386e5db091a908bc3e08f074dfe233c8d48e0cc642e8aae9

Contents?: true

Size: 632 Bytes

Versions: 5

Compression:

Stored size: 632 Bytes

Contents

require 'rules/engine'
require 'rules/extensions/active_model/absence_validator'
require 'rules/extensions/active_model/parameter_key_validator'
require 'rules/config'
require 'rules/evaluators'
require 'rules/evaluators/definitions'
require 'rules/has_rules'
require 'rules/parameters'
require 'rules/parameters/constant_definitions'
require 'rules/rule'
require 'rules/rule_set'

module Rules
  def self.config
    @config ||= Config.instance
  end

  def self.configure
    yield config
  end

  def self.evaluators
    @evaluators ||= Evaluators.list
  end

  def self.constants
  	@constants ||= Parameters.constants
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rules-1.1.1 lib/rules.rb
rules-1.1.0 lib/rules.rb
rules-0.1.2 lib/rules.rb
rules-0.1.1 lib/rules.rb
rules-0.1.0 lib/rules.rb