Sha256: 411b87963bfdb80bf3f1d4134db91922286d3506783156785d78b2e37a5d5a4b

Contents?: true

Size: 906 Bytes

Versions: 3

Compression:

Stored size: 906 Bytes

Contents

require "waistband/version"

module Waistband
  
  autoload :Configuration,    "waistband/configuration"
  autoload :Connection,       "waistband/connection"
  autoload :StringifiedArray, "waistband/stringified_array"
  autoload :StringifiedHash,  "waistband/stringified_hash"
  autoload :QueryResult,      "waistband/query_result"
  autoload :QueryHelpers,     "waistband/query_helpers"
  autoload :Query,            "waistband/query"
  autoload :FreeQuery,        "waistband/free_query"
  autoload :Index,            "waistband/index"
  autoload :QuickError,       "waistband/quick_error"
  autoload :Model,            "waistband/model"

  class << self

    def configure
      yield ::Waistband::Configuration.instance if block_given?
      config_instance = ::Waistband::Configuration.instance
      config_instance.setup
      config_instance
    end
    alias_method :config, :configure

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
waistband-0.4.2 lib/waistband.rb
waistband-0.4.1 lib/waistband.rb
waistband-0.4.0 lib/waistband.rb