Sha256: 3364d52dd9a1805ae80227c05ea078bd34bda217d57d4f1823aca2179b150ea6

Contents?: true

Size: 347 Bytes

Versions: 1

Compression:

Stored size: 347 Bytes

Contents

# frozen_string_literal: true

require 'optparse'

module ActiveRecord
  module DataIntegrity
    # Options parser
    class Options
      def initialize(options)
        @options = {
          only: options.only? ? options[:only].to_s.split(',') : nil
        }
      end

      def only
        @options[:only] || []
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activerecord-data_integrity-0.2.1 lib/active_record/data_integrity/options.rb