Sha256: 00c94f7a53d0385030d444c744cb189f8c63f79087d3519a1299cb353658260b

Contents?: true

Size: 571 Bytes

Versions: 10

Compression:

Stored size: 571 Bytes

Contents

# frozen_string_literal: true

module Lite
  module Report

    class Configuration

      attr_accessor :csv_options, :data_options, :import_options

      def initialize
        @csv_options = {}
        @data_options = {}
        @import_options = {}
      end

    end

    class << self

      attr_writer :configuration

      def configuration
        @configuration ||= Configuration.new
      end

      def configure
        yield(configuration)
      end

      def reset_configuration!
        @configuration = Configuration.new
      end

    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
lite-report-1.3.2 lib/lite/report/configuration.rb
lite-report-1.3.1 lib/lite/report/configuration.rb
lite-report-1.3.0 lib/lite/report/configuration.rb
lite-report-1.2.0 lib/lite/report/configuration.rb
lite-report-1.1.1 lib/lite/report/configuration.rb
lite-report-1.1.0 lib/lite/report/configuration.rb
lite-report-1.0.6 lib/lite/report/configuration.rb
lite-report-1.0.5 lib/lite/report/configuration.rb
lite-report-1.0.4 lib/lite/report/configuration.rb
lite-report-1.0.3 lib/lite/report/configuration.rb