Module: RSolr
- Extended by:
- Char
- Defined in:
- lib/rsolr.rb
Defined Under Namespace
Modules: Char, Direct, Error, Response, Uri, Xml
Classes: Client, Connection
Constant Summary
collapse
- VERSION =
self.version
Class Method Summary
collapse
Methods included from Char
escape
Class Method Details
.connect(*args) ⇒ Object
15
16
17
18
19
|
# File 'lib/rsolr.rb', line 15
def self.connect *args
driver = Class === args[0] ? args[0] : RSolr::Connection
opts = Hash === args[-1] ? args[-1] : {}
Client.new driver.new, opts
end
|
.version ⇒ Object
9
10
11
|
# File 'lib/rsolr.rb', line 9
def self.version
@version ||= File.read(File.join(File.dirname(__FILE__), '..', 'VERSION')).chomp
end
|