# How to inherit from other class in different level

**URL:** <https://www.ruby-forum.com/t/how-to-inherit-from-other-class-in-different-level/146800>\
**Category:** Ruby\
**Created:** [August 25, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/how-to-inherit-from-other-class-in-different-level/146800 "2008-08-25T17:21:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ISSSSaki\_Baz\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/51bf81/32.png) [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Post date:** [August 25, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/how-to-inherit-from-other-class-in-different-level/146800/1 "2008-08-25T17:21:45Z")

</div>

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.
