some fixes for ruby 1.8.1
This commit is contained in:
parent
233fc507d8
commit
63d8c22721
7 changed files with 24 additions and 23 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# $Dwarf: uuencode.rb,v 1.5 2003/04/20 20:15:34 ward Exp $
|
||||
# $Dwarf: uuencode.rb,v 1.6 2003/07/20 20:32:01 ward Exp $
|
||||
# $Source$
|
||||
|
||||
#
|
||||
|
|
@ -25,7 +25,7 @@ class << self
|
|||
Debuglevel = 0
|
||||
|
||||
def uudecode(data, outfile=nil)
|
||||
case data.type.to_s
|
||||
case data.class.to_s
|
||||
when "Array"
|
||||
print "Calling _uudecode_array\n" if Debuglevel>0
|
||||
mode, filename, body = _uudecode_array(data)
|
||||
|
|
@ -37,7 +37,7 @@ def uudecode(data, outfile=nil)
|
|||
print "Calling _uudecode_file\n" if Debuglevel>0
|
||||
mode, filename, body = _uudecode_file(data, outfile)
|
||||
else
|
||||
print "Funny stuff in uudecode. Data of type \"#{data.type.to_s}\"\n"
|
||||
print "Funny stuff in uudecode. Data of class \"#{data.class.to_s}\"\n"
|
||||
end
|
||||
return mode, filename, body
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# $Dwarf: yenc.rb,v 1.8 2003/04/22 19:25:57 ward Exp $
|
||||
# $Dwarf: yenc.rb,v 1.9 2003/07/20 20:32:01 ward Exp $
|
||||
# $Source$
|
||||
|
||||
#
|
||||
|
|
@ -30,7 +30,7 @@ def ydecode(data, outfile=nil)
|
|||
@ymap[b]=((b-42)%256)
|
||||
end
|
||||
|
||||
case data.type.to_s
|
||||
case data.class.to_s
|
||||
when "Array"
|
||||
print "Calling _ydecode_array\n" if Debuglevel>0
|
||||
mode, filename, body = _ydecode_array(data)
|
||||
|
|
@ -42,7 +42,7 @@ def ydecode(data, outfile=nil)
|
|||
print "Calling _ydecode_file\n" if Debuglevel>0
|
||||
mode, filename, body = _ydecode_file(data, outfile)
|
||||
else
|
||||
print "Funny stuff in ydecode. Data of type \"#{data.type.to_s}\"\n"
|
||||
print "Funny stuff in ydecode. Data of class \"#{data.class.to_s}\"\n"
|
||||
end
|
||||
return mode, filename, body
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue