Module N::PropertyUtils
In: lib/glue/property.rb

PropertyUtils

A collection of Property related utility methods.

Methods

Public Class methods

Add the property to the target (Class or Module)

Copy properties from src (Module or Class) to dest.

Add accessors to the properties to the given target (Module or Class). For simplicity also create the meta accessors.

target
The target class or module

Get the property metadata for the given symbol.

Include meta-language mixins

Generates the property setter code. Can be overriden to support extra functionality (example: markup)

Resolves the parameters passed to the propxxx macros to generate the meta, klass and symbols variables. This way the common functionality is factored out.

params
The params to resolve.
     [+one_symbol+]
             If true, only resolves one symbol (used in prop).

[Validate]