H
Hagbard Celine
Hi there!
I want to define a class which happens to have the same name as a
builtin class. It shouldn't be a problem because it's in an extra
namespace, but Ruby opens the existing class instead of defining a new
one. Here's an example:
module MyNamespace
class Array
# Some stuff
end
end
I tried using the full qualifier (class MyNamespace::Array) but it
didn't help. Is there a possibility to actually define a new class?
I want to define a class which happens to have the same name as a
builtin class. It shouldn't be a problem because it's in an extra
namespace, but Ruby opens the existing class instead of defining a new
one. Here's an example:
module MyNamespace
class Array
# Some stuff
end
end
I tried using the full qualifier (class MyNamespace::Array) but it
didn't help. Is there a possibility to actually define a new class?