Module: Validation

Defined in:
lib/validation.rb,
lib/validation/errors.rb,
lib/validation/version.rb,
lib/validation/condition.rb,
lib/validation/adjustment.rb,
lib/validation/validatable.rb,
lib/validation/singleton_class.rb,
lib/validation/module_functions.rb,
lib/validation/validatable/classmethods.rb

Overview

Copyright © 2011-2012 Kenichi Kamiya

Defined Under Namespace

Modules: Adjustment, Condition, Validatable Classes: InvalidAdjustingError, InvalidError, InvalidReadingError, InvalidWritingError

Constant Summary collapse

UnmanagebleError =
InvalidAdjustingError
VERSION =
'0.0.7.1'.freeze

Class Method Summary collapse

Class Method Details

.adjustable?(object) ⇒ Boolean

Returns:

  • (Boolean)

11
12
13
# File 'lib/validation/module_functions.rb', line 11

def adjustable?(object)
  Adjustment.__send__ __callee__, object
end

.conditionable?(object) ⇒ Boolean

Returns:

  • (Boolean)

7
8
9
# File 'lib/validation/module_functions.rb', line 7

def conditionable?(object)
  Condition.__send__ __callee__, object
end