2 ms·
Not quite sure what you mean, but I think it's something like this: a = "hello" puts a.size #=> 5 class <<a def size 1 end end puts a.s
by chc 15y ago
Not quite sure what you mean, but I think it's something like this:
a = "hello"
puts a.size #=> 5
class <<a
def size
1
end
end
puts a.size #=> 1
Am I on the right track?