Sha256: 15a598823d7dd5b1c5bda01821db37a01fe0c61a23335b75c7b1a168614299c5
Contents?: true
Size: 400 Bytes
Versions: 14
Compression:
Stored size: 400 Bytes
Contents
module <%= camelized_modules %> @@config = nil def self.configure @@config ||= Configuration.new if block_given? yield config end config end def self.config @@config || configure end class Configuration # attr_writer :config_name # attr_accessor :other_config_name # def config_name # @config_name ||= 'default value' # end end end
Version data entries
14 entries across 14 versions & 1 rubygems