Module: Property::Declaration
- Defined in:
- lib/property/declaration.rb
Overview
This module is used to manage property definitions (the schema) in a Class. The module also manages property inheritence in sub-classes by linking the schema in the sub-class with the schema in the superclass.
Defined Under Namespace
Modules: Base, ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/property/declaration.rb', line 7 def self.included(base) base.class_eval do include Base validate :properties_validation, :if => :properties end end |