Sha256: bf3f9e9a09c8c616497d315e8de3f91e042daf2a353ca2978820139aaf9c1cfd

Contents?: true

Size: 411 Bytes

Versions: 53

Compression:

Stored size: 411 Bytes

Contents

module WoopleTheme
  class Configuration
    attr_accessor :profile_helper, :menu_helper, :layout_javascript

    def profile_helper
      @profile_helper || :profile_helper
    end

    def menu_helper
      @menu_helper || :menu_helper
    end
  end

  class << self
    attr_accessor :configuration
  end

  def self.configure
    self.configuration ||= Configuration.new
    yield(configuration)
  end

end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
woople-theme-0.2.26 lib/woople-theme/configuration.rb
woople-theme-0.2.25 lib/woople-theme/configuration.rb
woople-theme-0.2.24 lib/woople-theme/configuration.rb
woople-theme-0.2.23 lib/woople-theme/configuration.rb
woople-theme-0.2.22 lib/woople-theme/configuration.rb
woople-theme-0.2.21 lib/woople-theme/configuration.rb
woople-theme-0.2.20 lib/woople-theme/configuration.rb
woople-theme-0.2.19 lib/woople-theme/configuration.rb
woople-theme-0.2.18 lib/woople-theme/configuration.rb
woople-theme-0.2.17 lib/woople-theme/configuration.rb
woople-theme-0.2.16 lib/woople-theme/configuration.rb
woople-theme-0.2.15 lib/woople-theme/configuration.rb
woople-theme-0.2.14 lib/woople-theme/configuration.rb
woople-theme-0.2.13 lib/woople-theme/configuration.rb
woople-theme-0.2.12 lib/woople-theme/configuration.rb
woople-theme-0.2.11 lib/woople-theme/configuration.rb
woople-theme-0.2.10 lib/woople-theme/configuration.rb
woople-theme-0.2.9 lib/woople-theme/configuration.rb
woople-theme-0.2.8 lib/woople-theme/configuration.rb
woople-theme-0.2.7 lib/woople-theme/configuration.rb