Module: Ape::ValidatorDsl::ClassMethods
- Defined in:
- lib/ape/validator_dsl.rb
Instance Method Summary collapse
- #deterministic ⇒ Object
- #disabled ⇒ Object
- #enabled ⇒ Object
- #nondeterministic ⇒ Object
- #requires_presence_of(*args) ⇒ Object
Instance Method Details
#deterministic ⇒ Object
20 21 22 23 24 |
# File 'lib/ape/validator_dsl.rb', line 20 def deterministic define_method('deterministic?') do return true end end |
#disabled ⇒ Object
14 15 16 17 18 |
# File 'lib/ape/validator_dsl.rb', line 14 def disabled define_method('enabled?') do return false end end |
#enabled ⇒ Object
8 9 10 11 12 |
# File 'lib/ape/validator_dsl.rb', line 8 def enabled define_method('enabled?') do return true end end |
#nondeterministic ⇒ Object
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 |