some fixes for ruby 1.8.1

This commit is contained in:
Ward Wouts 2004-06-16 08:17:48 +00:00
parent 233fc507d8
commit 63d8c22721
7 changed files with 24 additions and 23 deletions

View file

@ -1,4 +1,4 @@
# $Dwarf: intspan.rb,v 1.13 2002/11/05 09:33:41 ward Exp $
# $Dwarf: intspan.rb,v 1.14 2003/07/20 20:32:24 ward Exp $
# $Source$
#
@ -41,8 +41,8 @@ def IntSpan.valid(run_list)
end
def copy(set_spec)
print "Copy #{set_spec.type.to_s}\n" if Debuglevel > 0
case set_spec.type.to_s
print "Copy #{set_spec.class.to_s}\n" if Debuglevel > 0
case set_spec.class.to_s
when "NilClass"
print "copy: Calling _copy_empty\n" if Debuglevel > 0
_copy_empty
@ -273,7 +273,7 @@ def elements
end
def _real_set(set_spec=nil) # converts a set specification into a set
(set_spec != nil and set_spec.type.to_s == "Set::IntSpan") ?
(set_spec != nil and set_spec.class.to_s == "Set::IntSpan") ?
set_spec :
IntSpan.new(set_spec)
end