Class: File

Inherits:
Object
  • Object
show all
Extended by:
CouchOpen
Defined in:
lib/couchio/core_ext/file.rb

Class Method Summary collapse

Methods included from CouchOpen

open

Class Method Details

.couch_orig_readObject



6
# File 'lib/couchio/core_ext/file.rb', line 6

alias couch_orig_read read

.read(filename) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/couchio/core_ext/file.rb', line 7

def read(filename)
  if filename.index("couch://") == 0
    CouchDocument.new(filename).read
  else
    couch_orig_read
  end
end