Help with modules

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.

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.