Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
ruby / irb don't match up?
Matt Maycock
12/5/2006 4:56:00 PM
Hi,
I have the following versions of ruby / irb (from the rubyforge
windows installer)
C:\ruby\bin>ruby -v
ruby 1.8.4 (2006-04-14) [i386-mswin32]
C:\ruby\bin>irb -v
irb 0.9.5(05/04/13)
and I wrote a module (as a C extension) and have the following results
(Note that Config - a submodule - is missing in the irb results):
# Ruby
C:\ruby\bin>ruby -r Sleep/BoutsIntervals -e "p Sleep::BoutsIntervals.constants"
["IPP", "Death", "Config", "DAMS", "Args"]
# IRB
C:\ruby\bin>irb -r Sleep/BoutsIntervals
irb(main):001:0> Sleep::BoutsIntervals.constants
=> ["IPP", "Death", "DAMS", "Args"]
The extension was compiled via the directions in
http://www.koontzfamily.org/david/b...
using cl:
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
Any ideas?
~Matt Maycock
--
There's no word in the English language for what you do to a dead
thing to make it stop chasing you.
1 Answer
Matt Maycock
12/5/2006 5:08:00 PM
0
I just found this, which might shed light on the situation (the
difference here is that I am first requiring via the -r argument, then
using a require).
C:\DOCUME~1\ummaycoc\Desktop\src\interface\bouts_intervals\ruby>ruby -r Sleep/Bo
utsIntervals -e "p Sleep::BoutsIntervals.constants"
["IPP", "Death", "Config", "DAMS", "Args"]
C:\DOCUME~1\ummaycoc\Desktop\src\interface\bouts_intervals\ruby>ruby -e "require
'Sleep/BoutsIntervals'; p Sleep::BoutsIntervals.constants"
["Args", "IPP", "Death", "DAMS"]
However, irb -r and irb ... require both ignore the Config module.
~Matthew Maycock
On 12/5/06, Matt Maycock <ummaycoc@gmail.com> wrote:
> Hi,
>
> I have the following versions of ruby / irb (from the rubyforge
> windows installer)
>
> C:\ruby\bin>ruby -v
> ruby 1.8.4 (2006-04-14) [i386-mswin32]
>
> C:\ruby\bin>irb -v
> irb 0.9.5(05/04/13)
>
>
> and I wrote a module (as a C extension) and have the following results
> (Note that Config - a submodule - is missing in the irb results):
>
> # Ruby
> C:\ruby\bin>ruby -r Sleep/BoutsIntervals -e "p Sleep::BoutsIntervals.constants"
> ["IPP", "Death", "Config", "DAMS", "Args"]
>
> # IRB
> C:\ruby\bin>irb -r Sleep/BoutsIntervals
> irb(main):001:0> Sleep::BoutsIntervals.constants
> => ["IPP", "Death", "DAMS", "Args"]
>
>
> The extension was compiled via the directions in
>
>
http://www.koontzfamily.org/david/b...
>
> using cl:
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
> Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
>
> Any ideas?
>
> ~Matt Maycock
>
> --
> There's no word in the English language for what you do to a dead
> thing to make it stop chasing you.
>
--
There's no word in the English language for what you do to a dead
thing to make it stop chasing you.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
ruby / irb don't match up?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password