M
Mike Holly
module Foo
class String
def hi
puts 'hi'
end
end
end
include Foo
x = "hello"
x.hi
Why does this not work?
Thanks.
class String
def hi
puts 'hi'
end
end
end
include Foo
x = "hello"
x.hi
Why does this not work?
Thanks.