# Help with modules

**URL:** <https://www.ruby-forum.com/t/help-with-modules/157634>\
**Category:** Ruby\
**Created:** [January 13, 2009, 10:53pm UTC](https://www.ruby-forum.com/t/help-with-modules/157634 "2009-01-13T22:53:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![enchanter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ce7236/32.png) [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Post date:** [January 13, 2009, 10:53pm UTC](https://www.ruby-forum.com/t/help-with-modules/157634/1 "2009-01-13T22:53:08Z")

</div>

I can’t seem to find the answer to this but I know I’ve seen it  
somewhere.  
I am working with Ncurses, so I start all my files with  
require ‘rubygems’  
require ‘Ncurses’

and then I have to type things like:  
Ncurses.initscr  
Ncurses.keypad(Ncurses.stdscr, TRUE) and etc.

But the thing I want to be able to do is just type  
initscr()  
keypad(stdscr, TRUE)

and etc! Just using ‘include Ncurses’, but that doesn’t work. Any help?

– Tim.

---

<div class="post-metadata">

**Author:** ![enchanter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ce7236/32.png) [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Post date:** [January 13, 2009, 10:55pm UTC](https://www.ruby-forum.com/t/help-with-modules/157634/2 "2009-01-13T22:55:56Z")

</div>

Tim M. wrote:

> I can’t seem to find the answer to this but I know I’ve seen it  
> somewhere.  
> I am working with Ncurses, so I start all my files with  
> require ‘rubygems’  
> require ‘Ncurses’
> 
> and then I have to type things like:  
> Ncurses.initscr  
> Ncurses.keypad(Ncurses.stdscr, TRUE) and etc.
> 
> But the thing I want to be able to do is just type  
> initscr()  
> keypad(stdscr, TRUE)
> 
> and etc! Just using ‘include Ncurses’, but that doesn’t work. Any help?
> 
> – Tim.

Nevermind, sorry. I expanded my search on these forums a bit and got an  
answer.
