rubyx/test/mains/source/23_if-true_small_10.rb

24 lines
307 B
Ruby

class Integer < Data4
def <(right)
X.comparison(:<)
end
end
class Word < Data8
def putstring
X.putstring
end
end
class Space
def if_small( n )
if( n < 10)
"small".putstring
return 10
else
return 20
end
end
def main(arg)
return if_small( 8 )
end
end