Sha256: 932c767a80abd1502b70bf2703f05f90f57e57b5342cc1e84efd69582b8e2565

Contents?: true

Size: 696 Bytes

Versions: 7

Compression:

Stored size: 696 Bytes

Contents

# configuration, see http://robots.thoughtbot.com/mygem-configure-block.
module DiningTable

  class << self
    attr_accessor :configuration
  end

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

  class PresenterConfiguration
    attr_accessor :default_options

    def initialize
      @default_options = { }
    end
  end

  class Configuration
    attr_accessor :html_presenter
    attr_accessor :csv_presenter
    attr_accessor :excel_presenter

    def initialize
      @html_presenter  = PresenterConfiguration.new
      @csv_presenter   = PresenterConfiguration.new
      @excel_presenter = PresenterConfiguration.new
    end
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dining-table-1.1.3 lib/dining-table/config.rb
dining-table-1.1.2 lib/dining-table/config.rb
dining-table-1.1.1 lib/dining-table/config.rb
dining-table-1.1.0 lib/dining-table/config.rb
dining-table-1.0.0 lib/dining-table/config.rb
dining-table-0.2.1 lib/dining-table/config.rb
dining-table-0.2.0 lib/dining-table/config.rb