Sha256: 7eee079291ffc5ce7120e325c938e0de89b7b35379084b5bc57be6ba4bbb13c1
Contents?: true
Size: 686 Bytes
Versions: 2
Compression:
Stored size: 686 Bytes
Contents
require "polygon/version" require "polygon/loader" require "polygon/core_ext" require 'polygon/entry' require 'polygon/database' require 'polygon/helpers' require 'polygon/base' require 'polygon/dialect' # # A web framework powered by sinatra for mostly static websites # module Polygon DEFAULT_OPTIONS = { viewpoint: Database } def self.database(path, options = {}) options = DEFAULT_OPTIONS.merge(options) Alf.database(Database::Adapter.polygon(path), options) end def self.connection(path, options = {}) database(path, options).connection end def self.connect(path, options = {}, &bl) database(path, options).connect(&bl) end end # module Polygon
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
polygon-0.10.1 | lib/polygon.rb |
polygon-0.10.0 | lib/polygon.rb |