Sha256: 7865964e57feaff45d576f70cbaa97aa1351eb8c16c807af0fa9d3c786ef4e81

Contents?: true

Size: 392 Bytes

Versions: 4

Compression:

Stored size: 392 Bytes

Contents

# frozen_string_literal: true

require 'table_saw/version'
require 'table_saw/configuration'

module TableSaw
  def self.configuration
    @configuration ||= TableSaw::Configuration.new
  end

  def self.configure(args = {})
    if block_given?
      yield configuration
    else
      args.each do |key, value|
        configuration.public_send("#{key}=", value)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
table_saw-0.3.0 lib/table_saw.rb
table_saw-0.2.1 lib/table_saw.rb
table_saw-0.2.0 lib/table_saw.rb
table_saw-0.1.0 lib/table_saw.rb