module Formica
Constants
- Option
- VERSION
Attributes
options[R]
Public Class Methods
define_config(&blk)
click to toggle source
# File lib/formica.rb, line 82 def self.define_config(&blk) dsl = DSL.new dsl.instance_exec(&blk) Class.new(Config) do class << self; attr_reader :options; end @options = dsl.options.each_with_object({}) { |o, h| h[o.attr_name] = o.freeze }.freeze options.each { |_, o| o.define_on(self) } validate_dependencies! end end