2022-04-20 22:57:07 +02:00

9 lines
138 B
Plaintext

#- toint() converts any instance to int -#
class Test_int
def toint()
return 42
end
end
t=Test_int()
assert(int(t) == 42)