Class Loquacious::Configuration::DSL
In: lib/loquacious/configuration.rb
Parent: Object

Implementation of a doman specific language for creating configuration objects. Blocks of code are evaluted by the DSL which returns a new configuration object.

Methods

desc   evaluate   method_missing   new  

External Aliases

instance_eval -> __instance_eval

Attributes

__config  [R]  Returns the configuration object.

Public Class methods

Create a new DSL and evaluate the given block in the context of the DSL. Returns a newly created configuration object.

Creates a new DSL and evaluates the given block in the context of the DSL.

Public Instance methods

Store the string as the description for the next attribute that will be configured. This description will be overwritten if the attribute has a description passed as an options hash.

Dynamically adds the given method to the configuration as an attribute. The args will be used to set the value of the attribute. If a block is given then the args are ignored and the attribute will be a nested configuration object.

[Validate]