Module: Spinel
- Extended by:
- Config
- Defined in:
- lib/spinel.rb,
lib/spinel/client.rb,
lib/spinel/config.rb,
lib/spinel/helper.rb,
lib/spinel/indexer.rb,
lib/spinel/version.rb,
lib/spinel/searcher.rb
Defined Under Namespace
Modules: Config, Helper, Indexer, Searcher Classes: Client
Constant Summary collapse
Constants included from Config
Config::DEFAULT_CACHE_EXPIRE, Config::DEFAULT_DOCUMENT_KEY, Config::DEFAULT_MINIMAL_WORD, Config::DEFAULT_NAMESPACE, Config::DEFAULT_SEARCH_LIMIT
Instance Attribute Summary
Attributes included from Config
#cache_expire, #document_key, #minimal_word, #namespace, #search_limit
Class Method Summary collapse
- .method_missing(method_name, *args, type: :default, &block) ⇒ Object
- .new(type = :default) ⇒ Object
- .respond_to?(method_name, include_private = false) ⇒ Boolean
Methods included from Config
Class Method Details
.method_missing(method_name, *args, type: :default, &block) ⇒ Object
17 18 19 20 |
# File 'lib/spinel.rb', line 17 def self.method_missing(method_name, *args, type: :default, &block) return super unless new(type).respond_to?(method_name) new(type).send(method_name, *args, &block) end |
.new(type = :default) ⇒ Object
13 14 15 |
# File 'lib/spinel.rb', line 13 def self.new type = :default Client.new type end |
.respond_to?(method_name, include_private = false) ⇒ Boolean
22 23 24 |
# File 'lib/spinel.rb', line 22 def self.respond_to?(method_name, include_private = false) new.respond_to?(method_name, include_private) || super end |