Sha256: 1f01d011278a31536b9a866a072c1ab609fa61d8a42d2ac15e66b9877576fc85

Contents?: true

Size: 928 Bytes

Versions: 10

Compression:

Stored size: 928 Bytes

Contents

# frozen_string_literal: true

# Configuration for the BootstrapLeather module
module BootstrapLeather
  def self.configure(configuration = BootstrapLeather::Configuration.new)
    yield configuration if block_given?
    @configuration = configuration
  end

  def self.configuration
    @configuration ||= BootstrapLeather::Configuration.new
  end

  # Configuration class
  class Configuration
    attr_accessor :application_title, :application_description,
                  :application_keywords, :application_path, :application_logo

    def initialize
      self.application_logo = '/assets/logo.svg'
      self.application_path = '/'
      self.application_title = 'Run the Generator, Config and Restart'
      self.application_description = 'Try it, very easy. `rails g '\
        'bootstrap_leather:install` is the generator command.'
      self.application_keywords = 'Then, fix, your, config, file'
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bootstrap_leather-0.10.14 lib/bootstrap_leather/configuration.rb
bootstrap_leather-0.10.13 lib/bootstrap_leather/configuration.rb
bootstrap_leather-0.10.11 lib/bootstrap_leather/configuration.rb
bootstrap_leather-0.10.10 lib/bootstrap_leather/configuration.rb
bootstrap_leather-0.10.9 lib/bootstrap_leather/configuration.rb
bootstrap_leather-0.10.8 lib/bootstrap_leather/configuration.rb
bootstrap_leather-0.10.7 lib/bootstrap_leather/configuration.rb
bootstrap_leather-0.10.6 lib/bootstrap_leather/configuration.rb
bootstrap_leather-0.10.5 lib/bootstrap_leather/configuration.rb
bootstrap_leather-0.10.4 lib/bootstrap_leather/configuration.rb