Commit graph

3 commits

Author SHA1 Message Date
Jordan Sissel
071a0e0242 - fix grammar build
- Add Config mixin instance method 'config_init' which performs
  validation and sets instance variable values.

    If you define a config value like this:
      config :pants => :boolean

    You can expect to do this in the config file:
      pants => true

    And have this in your class:
      @pants # == true or false
2011-02-20 03:48:17 -08:00
Jordan Sissel
99b182645b - the 'lgtm' config now passes validation.
- Added enum support to the config, like this:
  config :mykey => ["value1", "value2", ...]
- Added simple value validation (:string, :number, :boolean)
- Added value coersion so :number would actually set a proper value of
  type number in the parameter hash.
2011-02-20 03:26:33 -08:00
Jordan Sissel
9b09652bdd - Dynamically load plugins based on data from the config file.
- Add prototype of validation to the config dsl
2011-02-20 02:45:30 -08:00