Hi, I've a problem since I need a Class to inherit from other Class
that is in other level. The problem is this:
···
---------------
module SIP
class SipUri
class SipUriParameters
end
end
end
module SIP
class TelUri
class TelUriParameters < SipUriParameters
end
end
end
-----------------
NameError: uninitialized constant SIP::TelUri::SipUriParameters
from (irb):9
Well, I can solve it by using:
class TelUriParameters < SIP::SipUri::SipUriParameters
but is not other way? Thanks a lot.
--
Iñaki Baz Castillo
<ibc@aliax.net>
Well, I can solve it by using:
class TelUriParameters < SIP::SipUri::SipUriParameters
but is not other way? Thanks a lot.
if you include the SIP::SipUri namespace in your script , you could be
using only class TelUriParameters < SipUriParameters
···
--
Posted via http://www.ruby-forum.com/\.
Ok, I understand. So then I prefer to using:
class TelUriParameters < SIP::SipUri::SipUriParameters
Thanks a lot
···
2008/8/25, Lex Williams <etaern@yahoo.com>:
>
>
> Well, I can solve it by using:
>
> class TelUriParameters < SIP::SipUri::SipUriParameters
>
> but is not other way? Thanks a lot.
if you include the SIP::SipUri namespace in your script , you could be
using only class TelUriParameters < SipUriParameters
--
Iñaki Baz Castillo
<ibc@aliax.net>