Method: CouchDB::Collection#method_missing

Defined in:
lib/couchdb/collection.rb

#method_missing(method_name, *arguments, &block) ⇒ Object



42
43
44
45
46
47
48
49
# File 'lib/couchdb/collection.rb', line 42

def method_missing(method_name, *arguments, &block)
  if ARRAY_METHOD_NAMES.include?(method_name)
    fetch
    @entries.send method_name, *arguments, &block
  else
    super
  end
end