Method: MongoidExt::File#read

Defined in:
lib/mongoid_ext/file.rb

#read(size = nil) ⇒ Object



84
85
86
87
88
89
90
# File 'lib/mongoid_ext/file.rb', line 84

def read(size = nil)
  if size != nil
    puts "#{__FILE__}:#{__LINE__} Passing size to read() is deprecated and will be removed soon. Use .each {} to read in blocks."
  end

  self.get.data
end