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.46 lib/woople-theme/configuration.rb
woople-theme-0.2.45 lib/woople-theme/configuration.rb
woople-theme-0.2.44 lib/woople-theme/configuration.rb
woople-theme-0.2.43 lib/woople-theme/configuration.rb
woople-theme-0.2.42 lib/woople-theme/configuration.rb
woople-theme-0.2.41 lib/woople-theme/configuration.rb
woople-theme-0.2.40 lib/woople-theme/configuration.rb
woople-theme-0.2.39 lib/woople-theme/configuration.rb
woople-theme-0.2.38 lib/woople-theme/configuration.rb
woople-theme-0.2.37 lib/woople-theme/configuration.rb
woople-theme-0.2.36 lib/woople-theme/configuration.rb
woople-theme-0.2.35 lib/woople-theme/configuration.rb
woople-theme-0.2.34 lib/woople-theme/configuration.rb
woople-theme-0.2.33 lib/woople-theme/configuration.rb
woople-theme-0.2.32 lib/woople-theme/configuration.rb
woople-theme-0.2.31 lib/woople-theme/configuration.rb
woople-theme-0.2.30 lib/woople-theme/configuration.rb
woople-theme-0.2.29 lib/woople-theme/configuration.rb
woople-theme-0.2.28 lib/woople-theme/configuration.rb
woople-theme-0.2.27 lib/woople-theme/configuration.rb