Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
'move into' a module's namespace in irb
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Max Williams, post: 4642282"] I'm in an irb session where i have a lot of modules loaded. All of the modules have a common parent, 'Thoth'. So, i'm referring to lots of classes called 'Thoth::Post', 'Thoth::Tag', 'Thoth::Page' etc. To save some typing, i'd just like to refer to these classes as Post, Tag or Page. Is there a way i can sort of 'move into' the Thoth module, so i don't have to keep namespacing the classes all the time? Sorry if i'm not explaining this very well, i'm possibly showing off my ignorance about the relationship between classes and modules here... thanks, max [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
'move into' a module's namespace in irb
Top