We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0659d2a + 49a1894 commit 51f25cfCopy full SHA for 51f25cf
1 file changed
src/neo.rb
@@ -218,15 +218,15 @@ def initialize
218
219
def add_progress(prog)
220
@_contents = nil
221
- exists = File.exists?(PROGRESS_FILE_NAME)
+ exists = File.exist?(PROGRESS_FILE_NAME)
222
File.open(PROGRESS_FILE_NAME,'a+') do |f|
223
f.print "#{',' if exists}#{prog}"
224
end
225
226
227
def progress
228
if @_contents.nil?
229
- if File.exists?(PROGRESS_FILE_NAME)
+ if File.exist?(PROGRESS_FILE_NAME)
230
File.open(PROGRESS_FILE_NAME,'r') do |f|
231
@_contents = f.read.to_s.gsub(/\s/,'').split(',')
232
0 commit comments