Sha256: efd15981d31a1d9b0f7ef86df2e2dab8a6126242748ca10c6fc34c18c4f96eb2

Contents?: true

Size: 358 Bytes

Versions: 2

Compression:

Stored size: 358 Bytes

Contents

require "ashikawa-core"

module Ashikawa
  module AR
    def self.raw_setup(name, database)
      Setup.databases[name] = database
    end

    def self.setup(name, location)
      Setup.databases[name] = Ashikawa::Core::Database.new location
    end

    class Setup
      class << self; attr_accessor :databases end
      @databases = {}
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ashikawa-ar-0.1.3 lib/ashikawa-ar/setup.rb
ashikawa-ar-0.1.2 lib/ashikawa-ar/setup.rb