How to inherit from other class in different level

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.

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

2008/8/25, Lex W. [email protected]:

using only class TelUriParameters < SipUriParameters
Ok, I understand. So then I prefer to using:
class TelUriParameters < SIP::SipUri::SipUriParameters

Thanks a lot