Sha256: 13a5fe5abd8b1a4c5d0c114020e0736f4f36e50376a8c8cfb8cd62eb045b4342
Contents?: true
Size: 361 Bytes
Versions: 1
Compression:
Stored size: 361 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 # def config_name # @config_name ||= 'default value' # end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pluginizer-0.0.9 | templates/lib/%namespaced_name%/configuration.rb.tt |