Module: Rawscsi

Defined in:
lib/rawscsi.rb,
lib/rawscsi/base.rb,
lib/rawscsi/index.rb,
lib/rawscsi/search.rb,
lib/rawscsi/version.rb,
lib/rawscsi/query/simple.rb,
lib/rawscsi/query/compound.rb,
lib/rawscsi/query/stringifier.rb,
lib/rawscsi/stringifier/encode.rb,
lib/rawscsi/stringifier/simple.rb,
lib/rawscsi/stringifier/compound.rb,
lib/rawscsi/index_helpers/sdf_add.rb,
lib/rawscsi/index_helpers/connection.rb,
lib/rawscsi/index_helpers/sdf_delete.rb,
lib/rawscsi/search_helpers/results_hash.rb,
lib/rawscsi/search_helpers/results_active_record.rb

Defined Under Namespace

Modules: IndexHelpers, Query, SearchHelpers, Stringifier Classes: Base, Configuration, Index, Search

Constant Summary collapse

VERSION =
"1.3.1"
@@registered_models =
{}

Class Method Summary collapse

Class Method Details

.register(model) {|config| ... } ⇒ Object

Yields:

  • (config)


43
44
45
46
47
# File 'lib/rawscsi.rb', line 43

def self.register(model)
  config = Configuration.new
  yield(config)
  @@registered_models[model] = config
end

.registered_modelsObject



49
50
51
# File 'lib/rawscsi.rb', line 49

def self.registered_models
  @@registered_models
end