Sha256: d2208e36a31f05f39dd4543719288bfc2c165764c970e028990a32b9d0a55a76

Contents?: true

Size: 638 Bytes

Versions: 19

Compression:

Stored size: 638 Bytes

Contents

module Bootswitch
  def self.configure(configuration = Bootswitch::Configuration.new)
    if block_given?
      yield configuration
    end
    @@configuration = configuration
  end
  
  def self.configuration
    @@configuration ||= Bootswitch::Configuration.new
  end
  
  class Configuration
    attr_accessor :theme_method, :default_theme, :themes
    
    def initialize
      self.theme_method = nil
      self.default_theme = 'cyborg'
      self.themes = ['amelia', 'cerulean', 'cosmo', 'custom', 'cyborg', 'darkly', 'flatly','global','journal','readable','simplex','slate','spacelab','superhero','united','yeti']
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
bootswitch-0.6.0 lib/bootswitch/configuration.rb
bootswitch-0.5.4 lib/bootswitch/configuration.rb
bootswitch-0.5.3 lib/bootswitch/configuration.rb
bootswitch-0.5.2 lib/bootswitch/configuration.rb
bootswitch-0.5.1 lib/bootswitch/configuration.rb
bootswitch-0.5.0 lib/bootswitch/configuration.rb
bootswitch-0.4.0 lib/bootswitch/configuration.rb
bootswitch-0.3.0 lib/bootswitch/configuration.rb
bootswitch-0.2.2 lib/bootswitch/configuration.rb
bootswitch-0.2.1 lib/bootswitch/configuration.rb
bootswitch-0.2.0 lib/bootswitch/configuration.rb
bootswitch-0.1.3 lib/bootswitch/configuration.rb
bootswitch-0.1.2 lib/bootswitch/configuration.rb
bootswitch-0.1.1 lib/bootswitch/configuration.rb
bootswitch-0.0.13 lib/bootswitch/configuration.rb
bootswitch-0.0.12 lib/bootswitch/configuration.rb
bootswitch-0.0.11 lib/bootswitch/configuration.rb
bootswitch-0.0.9 lib/bootswitch/configuration.rb
bootswitch-0.0.8 lib/bootswitch/configuration.rb