Sha256: c8d66064bc381a6a47f60a3b8906298ab4e6efccc44c22565fe4d2540e54cd49
Contents?: true
Size: 786 Bytes
Versions: 2
Compression:
Stored size: 786 Bytes
Contents
require 'cupcakinator/version' require 'cupcakinator/base' require 'cupcakinator/config' require 'cupcakinator/options' require 'cupcakinator/errors' # the purpose of cupcakinator is to provide an simple, flexible dynamic method to retrrieve configuration # data for a class # it provides this dynamic method as 'config' by default for both the class and any instances # @example class Foo uses cupcakinator, see Cupcakinator::Base::cupcakinate # given config.yml: # bacon: # flavor: pork # meatball: # flavor: # - pork # - chicken # >> Foo.config # {"meatball"=>{"flavor"=>["chicken", "pork"]}} # >> Foo.config.meatball # {"flavor"=>["chicken", "pork"]} module Cupcakinator def self.included(other) other.extend Cupcakinator::Base end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cupcakinator-0.0.4 | lib/cupcakinator.rb |
cupcakinator-0.0.2 | lib/cupcakinator.rb |