Module: Rulz::Conditions

Defined in:
lib/rulz/conditions/boolean.rb,
lib/rulz/conditions/conditions.rb

Defined Under Namespace

Modules: Boolean

Class Method Summary collapse

Class Method Details

.load_conditions(reciever, attribute, kind) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/rulz/conditions/conditions.rb', line 3

def self.load_conditions(reciever, attribute, kind)
  case kind
  when :integer
    Comparison.load_conditions(reciever, attribute)
  when :float
    Comparison.load_conditions(reciever, attribute)
  when :decimal
    Comparison.load_conditions(reciever, attribute)
  when :string
    Container.load_conditions(reciever, attribute)
    String.load_conditions(reciever, attribute)
  when :text
    Container.load_conditions(reciever, attribute)
    String.load_conditions(reciever, attribute)
  when :array
    Container.load_conditions(reciever, attribute)
  when :hash
    Container.load_conditions(reciever, attribute)
  when :boolean
    Boolean.load_conditions(reciever, attribute)      
  end
end