lib/fbo/file.rb in fbo-0.1.6 vs lib/fbo/file.rb in fbo-0.1.7

- old
+ new

@@ -22,13 +22,10 @@ str = @file.gets str.nil? ? nil : cleanup_data(str) end def contents - if @contents.nil? - @contents = cleanup_data(@file.read) - end - @contents + @contents ||= cleanup_data(@file.read) end protected def cleanup_data(data)