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