Method: MongoidExt::File#each
- Defined in:
- lib/mongoid_ext/file.rb
#each(&block) ⇒ Object
101 102 103 104 105 106 107 108 |
# File 'lib/mongoid_ext/file.rb', line 101 def each(&block) if self.get self.get.each(&block) else puts "WARNING: the file you are trying to read doesn't exist: #{self.inspect}" nil end end |