module ElasticRecord::Relation::Delegation

Public Instance Methods

include?(obj) click to toggle source
# File lib/elastic_record/relation/delegation.rb, line 8
def include?(obj)
  to_a.include?(obj)
end
to_ary() click to toggle source
# File lib/elastic_record/relation/delegation.rb, line 4
def to_ary
  to_a.to_ary
end

Private Instance Methods

method_missing(method, *args, &block) click to toggle source
Calls superclass method
# File lib/elastic_record/relation/delegation.rb, line 17
def method_missing(method, *args, &block)
  if Array.method_defined?(method)
    to_a.send(method, *args, &block)
  elsif klass.respond_to?(method)
    scoping { klass.send(method, *args, &block) }
  else
    super
  end
end
respond_to_missing?(method, include_private = false) click to toggle source
Calls superclass method
# File lib/elastic_record/relation/delegation.rb, line 13
def respond_to_missing?(method, include_private = false)
  super || klass.respond_to?(method, include_private) || Array.method_defined?(method)
end