Help with modules.

T

Tim Mcd

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.
 
T

Tim Mcd

Tim said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
474,183
Messages
2,570,970
Members
47,527
Latest member
RoxanneTos

Latest Threads

Top