Module: Compel::Builder::CommonValue

Included in:
Float, Integer, String
Defined in:
lib/compel/builder/common_value.rb

Instance Method Summary collapse

Instance Method Details

#in(value) ⇒ Object



11
12
13
14
# File 'lib/compel/builder/common_value.rb', line 11

def in(value)
  options[:in] = value
  self
end

#is(value) ⇒ Object



6
7
8
9
# File 'lib/compel/builder/common_value.rb', line 6

def is(value)
  options[:is] = value
  self
end

#max(value) ⇒ Object



26
27
28
29
# File 'lib/compel/builder/common_value.rb', line 26

def max(value)
  options[:max] = value
  self
end

#min(value) ⇒ Object



21
22
23
24
# File 'lib/compel/builder/common_value.rb', line 21

def min(value)
  options[:min] = value
  self
end

#range(value) ⇒ Object



16
17
18
19
# File 'lib/compel/builder/common_value.rb', line 16

def range(value)
  options[:range] = value
  self
end