LinuxDevicesForRuby

M

Mathieu Bouchard

After "Linux Devices For Ruby", version 0.1.1, released in 2002.07, I am
finally resuming this project. However it is being merged with another
project called "GridFlow", and will be in a directory called
"devices4ruby".

Linux Devices For Ruby is a very small collection of ioctl() wrappers so
that some kernel interfaces become easier to use. In particular, there is
a generic wrapper (class methods ressembling Module#attr), and from there,
there is support for Linux Parallel Port (/dev/lp), OSS Sound PCM
(/dev/dsp), and OSS Sound Mixer (/dev/mixer). All those are implemented as
modules (that is, secondary superclasses) that you graft onto any object
of class IO that is bound to such a kernel device; e.g.:

require "linux/ParallelPort"
f = File.open "/dev/lp", "w"
f.sync = false
f.extend Linux::parallelPort
p f.status

and so on

note that the exact naming of the modules will change in the process.
I suggest to stick with LDFR 0.1.1 until GridFlow 0.8.0 is released, and
then make any required compatibility changes.

The GridFlow project (doc, cvs, tar, etc) is accessible at:

http://gridflow.ca/

_____________________________________________________________________
Mathieu Bouchard -=- Montréal QC Canada -=- http://artengine.ca/matju
 

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

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top