just playing around with ruby ( experimenting ). hopefully someone can helpanyways... everytime I do this code
I keep getting this errorclass MYLIB
def s
self.to_s
end
def i
self.to_i
end
def f
self.to_f
end
end
class String < MYLIB
end
class Integer < MYLIB
end
line 15 being this codeclasses.rb:15: superclass mismatch for class String (TypeError)
class String < MYLIB



anyways... everytime I do this code



Bookmarks