Module: Ape::ValidatorDsl::ClassMethods

Defined in:
lib/ape/validator_dsl.rb

Instance Method Summary collapse

Instance Method Details

#deterministicObject



20
21
22
23
24
# File 'lib/ape/validator_dsl.rb', line 20

def deterministic
  define_method('deterministic?') do
    return true
  end
end

#disabledObject



14
15
16
17
18
# File 'lib/ape/validator_dsl.rb', line 14

def disabled
  define_method('enabled?') do
    return false
  end
end

#enabledObject



8
9
10
11
12
# File 'lib/ape/validator_dsl.rb', line 8

def enabled
  define_method('enabled?') do
    return true
  end
end

#nondeterministicObject



26
27
28
29
30
# File 'lib/ape/validator_dsl.rb', line 26

def nondeterministic
  define_method('deterministic?') do
    return false
  end
end

#requires_presence_of(*args) ⇒ Object



32
33
34
35
36
# File 'lib/ape/validator_dsl.rb', line 32

def requires_presence_of(*args)
  define_method('manifest') do
    return args
  end
end