Module: Ciesta

Defined in:
lib/ciesta.rb,
lib/ciesta/errors.rb,
lib/ciesta/version.rb,
lib/ciesta/class_methods.rb,
lib/ciesta/instance_methods.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods, Types Classes: Field, FieldList, Validator

Constant Summary collapse

ViolatesConstraints =

Error for violating constraints

Class.new(ArgumentError)
FieldNotDefined =

Error for missing field definition

Class.new(NoMethodError)
VERSION =
"0.4.0".freeze

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



16
17
18
19
# File 'lib/ciesta.rb', line 16

def self.included(base)
  base.extend(ClassMethods)
  base.include(InstanceMethods)
end