Class N::Property
In: lib/glue/property.rb
Parent: Object

Ruby attributes are typeless and generally this is good. Some times we need extra metadata though, for example in relational mapping, or web form population.

Only Fixnums, Strings, Floats, Times, Booleans are converted.

The default = methods do not force the types. A special __force_set method should be used instead.

Methods

==   new   to_s  

Attributes

klass  [RW]  the class of the property
meta  [RW]  additional metadata (like sql declaration, sql index, etc)
name  [RW]  the string representation of the symbol
symbol  [RW]  the symbol of the property

Public Class methods

Public Instance methods

[Validate]