Module: Elasticsearch::Persistence::GatewayDelegation
- Defined in:
- lib/elasticsearch/persistence/repository.rb
Overview
Delegate methods to the repository (acting as a gateway)
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *arguments, &block) ⇒ Object
7
8
9
|
# File 'lib/elasticsearch/persistence/repository.rb', line 7
def method_missing(method_name, *arguments, &block)
gateway.respond_to?(method_name) ? gateway.__send__(method_name, *arguments, &block) : super
end
|
Instance Method Details
#respond_to?(method_name, include_private = false) ⇒ Boolean
11
12
13
|
# File 'lib/elasticsearch/persistence/repository.rb', line 11
def respond_to?(method_name, include_private=false)
gateway.respond_to?(method_name) || super
end
|
#respond_to_missing?(method_name) ⇒ Boolean
15
16
17
|
# File 'lib/elasticsearch/persistence/repository.rb', line 15
def respond_to_missing?(method_name, *)
gateway.respond_to?(method_name) || super
end
|