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

Version Path
pluginizer-0.3.1 templates/lib/%namespaced_name%/configuration.rb.tt
pluginizer-0.3.0 templates/lib/%namespaced_name%/configuration.rb.tt
pluginizer-0.2.2 templates/lib/%namespaced_name%/configuration.rb.tt
pluginizer-0.2.1 templates/lib/%namespaced_name%/configuration.rb.tt
pluginizer-0.2.0 templates/lib/%namespaced_name%/configuration.rb.tt
pluginizer-0.1.7 templates/lib/%namespaced_name%/configuration.rb.tt
pluginizer-0.1.6 templates/lib/%namespaced_name%/configuration.rb.tt
pluginizer-0.1.5 templates/lib/%namespaced_name%/configuration.rb.tt
pluginizer-0.1.4 templates/lib/%namespaced_name%/configuration.rb.tt
pluginizer-0.1.3 templates/lib/%namespaced_name%/configuration.rb.tt
pluginizer-0.1.2 templates/lib/%namespaced_name%/configuration.rb.tt
pluginizer-0.1.1 templates/lib/%namespaced_name%/configuration.rb.tt
pluginizer-0.1.0 templates/lib/%namespaced_name%/configuration.rb.tt
pluginizer-0.0.10 templates/lib/%namespaced_name%/configuration.rb.tt