H
Henry Savr
Thank you, guys, for help with my previous problems. With your
assistance my second week with Ruby was more or less successful.
However...
I redefined couple methods of the Time class
Everything worked fine, so I wanted to combine all the stuff in the
module. But Ruby began complaining, when I just enclosed my job with
words "module X1" and "end".
That was fine:
class Time
...
end
class Is
...
end
class Money
...
end
=========================
Problems start here:
module X1
class Time
...
end
class Is
...
end
class Money
...
end
end
========================
I think, that Ruby considers class Time inside the module as a new
class, which belongs module X1. So I have to inform him/her , that
it is the same class, as the original one. And I don't know how to do
that.
Please, help.
Thank you
Henry
assistance my second week with Ruby was more or less successful.
However...
I redefined couple methods of the Time class
Everything worked fine, so I wanted to combine all the stuff in the
module. But Ruby began complaining, when I just enclosed my job with
words "module X1" and "end".
That was fine:
class Time
...
end
class Is
...
end
class Money
...
end
=========================
Problems start here:
module X1
class Time
...
end
class Is
...
end
class Money
...
end
end
========================
I think, that Ruby considers class Time inside the module as a new
class, which belongs module X1. So I have to inform him/her , that
it is the same class, as the original one. And I don't know how to do
that.
Please, help.
Thank you
Henry