Module: ClientData::Methods

Extended by:
ActiveSupport::Concern
Defined in:
lib/client_data/methods.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#buildersObject



24
25
26
27
28
29
30
31
32
33
# File 'lib/client_data/methods.rb', line 24

def builders
  @builders ||= begin
    builders_hash = {}
    builder_options_hash.each do |key, options|
      name = options[:as].nil? ? key : options[:as]
      builders_hash[name] = create_builder(key)
    end
    builders_hash
  end
end