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.6 lib/woople-theme/configuration.rb
woople-theme-0.2.5 lib/woople-theme/configuration.rb
woople-theme-0.2.4 lib/woople-theme/configuration.rb
woople-theme-0.2.3 lib/woople-theme/configuration.rb
woople-theme-0.2.2 lib/woople-theme/configuration.rb
woople-theme-0.2.1 lib/woople-theme/configuration.rb
woople-theme-0.2.0 lib/woople-theme/configuration.rb
woople-theme-0.1.0 lib/woople-theme/configuration.rb
woople-theme-0.0.6 lib/woople-theme/configuration.rb
woople-theme-0.0.5 lib/woople-theme/configuration.rb
woople-theme-0.0.4 lib/woople-theme/configuration.rb
woople-theme-0.0.3 lib/woople-theme/configuration.rb
woople-theme-0.0.2 lib/woople-theme/configuration.rb