some fixes for ruby 1.8.1
This commit is contained in:
parent
63d8c22721
commit
4efb82ca58
1 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/local/bin/ruby -w
|
||||
|
||||
# $Dwarf: ripnews.rb,v 1.80 2004/05/19 09:25:40 ward Exp $
|
||||
# $Dwarf: ripnews.rb,v 1.81 2004/06/16 08:11:07 ward Exp $
|
||||
# $Source$
|
||||
|
||||
#
|
||||
|
|
@ -51,7 +51,7 @@ def save_file(dir, name, data)
|
|||
end
|
||||
print "name: #{newname}\n" if Debuglevel > 1
|
||||
|
||||
case data.type.to_s
|
||||
case data.class.to_s
|
||||
when "String"
|
||||
begin
|
||||
if File.move(data, "#{dir}/#{newname}")
|
||||
|
|
@ -89,7 +89,7 @@ def save_file(dir, name, data)
|
|||
return false
|
||||
end
|
||||
else
|
||||
print "EEEEPS Can't save data of type: #{data.type.to_s}\n"
|
||||
print "EEEEPS Can't save data of class: #{data.class.to_s}\n"
|
||||
return false
|
||||
end
|
||||
return true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue