Sha256: 18f2282c1d925a252f2757f4ec9bf4a7859cc36f90cc2aba14862c64de419c31

Contents?: true

Size: 376 Bytes

Versions: 3

Compression:

Stored size: 376 Bytes

Contents

# -*- coding: utf-8 -*-
require 'arxutils/store/storedb'
require 'arxutils/store/storecsv'

module Arxutils
  class Store
    extend Forwardable

    def Store.init( kind , hs , &block )
      case kind
      when :db
        obj = StoreDb.init( hs , block )
      when :csv
        obj = StoreCsv.new( hs )
      else
        obj = nil
      end

      obj
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
arxutils-0.1.36 lib/arxutils/store.rb
arxutils-0.1.35 lib/arxutils/store.rb
arxutils-0.1.31 lib/arxutils/store.rb