# Ruby

**URL:** https://www.ruby-forum.com/c/ruby/7.md?page=1834

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 1835

---

## [Order in Hashes](https://www.ruby-forum.com/t/order-in-hashes/56817)

<div class="topic-metadata">

**Author:** [@pytlik](https://www.ruby-forum.com/u/pytlik)\
**Replies:** 10\
**Last updated:** [April 4, 2006, 5:45pm UTC](https://www.ruby-forum.com/t/order-in-hashes/56817 "2006-04-04T17:45:20Z")

</div>

Hello, I am building a menu structure for rails that I’d like to store in a simple Hash. Now I found out that ruby Hashes do not keep the order, like this program: b = {‘upkpgn’=\>1, ‘jmay’=\>2, ‘vkvxxm’=\>3} b.ea…

---

## [A good system for $LOAD\_PATH management?](https://www.ruby-forum.com/t/a-good-system-for-load-path-management/56518)

<div class="topic-metadata">

**Author:** [@tashirosgt](https://www.ruby-forum.com/u/tashirosgt)\
**Replies:** 6\
**Last updated:** [April 4, 2006, 5:26pm UTC](https://www.ruby-forum.com/t/a-good-system-for-load-path-management/56518 "2006-04-04T17:26:39Z")

</div>

I see, by experiment, that one can maipulate $LOAD\_PATH within a Ruby program. The second edition of the Pixaxe book indicates that using rubygems is a good way. What are some examples of “best practices” for $LOAD\_P…

---

## [GStreamer Woes](https://www.ruby-forum.com/t/gstreamer-woes/93435)

<div class="topic-metadata">

**Author:** [@Stupergenius](https://www.ruby-forum.com/u/Stupergenius)\
**Replies:** 10\
**Last updated:** [April 4, 2006, 4:58pm UTC](https://www.ruby-forum.com/t/gstreamer-woes/93435 "2006-04-04T16:58:40Z")

</div>

Hi all, newbie to Ruby and this group. My question deals with the Ruby GStreamer bindings. Basically, I copied and pasted the GStreamer example from the Ruby GNOME2 site and replaced the mad plugin, which I don’t hav…

---

## [Ruby Language in Depth](https://www.ruby-forum.com/t/ruby-language-in-depth/56821)

<div class="topic-metadata">

**Author:** [@afewtips](https://www.ruby-forum.com/u/afewtips)\
**Replies:** 2\
**Last updated:** [April 4, 2006, 4:55pm UTC](https://www.ruby-forum.com/t/ruby-language-in-depth/56821 "2006-04-04T16:55:35Z")

</div>

I’m looking for something akin to Stroustrup’s C++ Programming Language or The Design and Evolution of C++ for Ruby. I love Programming Ruby and it’s a great resource, but not quiet deep enough on all of the internal…

---

## [Re: Pathname bug on Windows box?](https://www.ruby-forum.com/t/re-pathname-bug-on-windows-box/93540)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [April 4, 2006, 4:34pm UTC](https://www.ruby-forum.com/t/re-pathname-bug-on-windows-box/93540 "2006-04-04T16:34:12Z")

</div>

— test.rb — always produces: c:/ruby/lib/ruby/1.8/pathname.rb:341:in lstat': Invalid argument - /c: (Errno::EINVAL) from c:/ruby/lib/ruby/1.8/pathname.rb:341:inrealpath’ from test.rb:2 any ideas? seems like Pathnam…

---

## [Ruby Column at Linux Journal](https://www.ruby-forum.com/t/ruby-column-at-linux-journal/56814)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 2\
**Last updated:** [April 4, 2006, 4:15pm UTC](https://www.ruby-forum.com/t/ruby-column-at-linux-journal/56814 "2006-04-04T16:15:42Z")

</div>

The next installment of my Linux Journal column was posted this morning. Lot’s of news this time around, and a quick dive into ParseTree. The Gemcutter's Workshop: Many Developments in the Ruby Community | Linux Jour…

---

## [SWIG typemap problem](https://www.ruby-forum.com/t/swig-typemap-problem/102763)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 4, 2006, 4:09pm UTC](https://www.ruby-forum.com/t/swig-typemap-problem/102763 "2006-04-04T16:09:39Z")

</div>

hi all! i have a problem using swig. I wrap the follwing c++ class using an array typemap // c++ class class Foo { public: void SetPoint(int id, const double x\[3\]); }; // in .i file %typemap(ruby,in) const doubl…

---

## [Ruby before Ruby?](https://www.ruby-forum.com/t/ruby-before-ruby/93452)

<div class="topic-metadata">

**Author:** [@taq](https://www.ruby-forum.com/u/taq)\
**Replies:** 1\
**Last updated:** [April 4, 2006, 4:06pm UTC](https://www.ruby-forum.com/t/ruby-before-ruby/93452 "2006-04-04T16:06:32Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there. I was searching some stuff about Ruby and found this: http://www.cooper.com/alan/father\_of\_vb.html There was a Ruby before “our” Ruby, and it’s known as Visual…

---

## [SWIG typemap problem](https://www.ruby-forum.com/t/swig-typemap-problem/93537)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 4, 2006, 3:51pm UTC](https://www.ruby-forum.com/t/swig-typemap-problem/93537 "2006-04-04T15:51:06Z")

</div>

hi all! i have a problem using swig. I wrap the follwing c++ class using an array typemap // c++ class class Foo { public: void SetPoint(int id, const double x\[3\]); }; // in .i file %typemap(ruby,in) const doubl…

---

## [Can't find io/wait on windows](https://www.ruby-forum.com/t/cant-find-io-wait-on-windows/56752)

<div class="topic-metadata">

**Author:** [@Tim\_Garwood](https://www.ruby-forum.com/u/Tim_Garwood)\
**Replies:** 4\
**Last updated:** [April 4, 2006, 2:57pm UTC](https://www.ruby-forum.com/t/cant-find-io-wait-on-windows/56752 "2006-04-04T14:57:19Z")

</div>

Hello, This is my first post. I read a post from a little while ago about having trouble getting io/wait to work on Windows. I downloaded the win32utils library off of rubyforge and installed it to the default path o…

---

## [Pathname bug on Windows box?](https://www.ruby-forum.com/t/pathname-bug-on-windows-box/93517)

<div class="topic-metadata">

**Author:** [@psyche](https://www.ruby-forum.com/u/psyche)\
**Replies:** 0\
**Last updated:** [April 4, 2006, 11:03am UTC](https://www.ruby-forum.com/t/pathname-bug-on-windows-box/93517 "2006-04-04T11:03:00Z")

</div>

— test.rb — require ‘pathname’ puts Pathname.new(’.’).realpath — test.rb — always produces: c:/ruby/lib/ruby/1.8/pathname.rb:341:in lstat': Invalid argument - /c: (Errno::EINVAL) from c:/ruby/lib/ruby/1.8/pathname.…

---

## [Does Ruby simplify our tasks and lives?](https://www.ruby-forum.com/t/does-ruby-simplify-our-tasks-and-lives/56653)

<div class="topic-metadata">

**Author:** [@Simplicity](https://www.ruby-forum.com/u/Simplicity)\
**Replies:** 2\
**Last updated:** [April 4, 2006, 9:24am UTC](https://www.ruby-forum.com/t/does-ruby-simplify-our-tasks-and-lives/56653 "2006-04-04T09:24:13Z")

</div>

Does Ruby simplify our lives by providing more elegant methods to solving problems? How does it compare to other script languages, such as Python in regards to simplification and simplicity of design? B.V. http://ww…

---

## [Win32 extensions? not OLE](https://www.ruby-forum.com/t/win32-extensions-not-ole/93503)

<div class="topic-metadata">

**Author:** [@rain](https://www.ruby-forum.com/u/rain)\
**Replies:** 2\
**Last updated:** [April 4, 2006, 8:34am UTC](https://www.ruby-forum.com/t/win32-extensions-not-ole/93503 "2006-04-04T08:34:26Z")

</div>

Hello I’m new to programming and Ruby. My question is, "does Ruby have a Windows extensions module that allows access to windows OS? " Something like the windows extension for Python written by Mark Hammond where yo…

---

## [\[ANN\] Houston Ruby/RoR group meeting for April](https://www.ruby-forum.com/t/ann-houston-ruby-ror-group-meeting-for-april/56792)

<div class="topic-metadata">

**Author:** [@klancaster](https://www.ruby-forum.com/u/klancaster)\
**Replies:** 0\
**Last updated:** [April 4, 2006, 3:27am UTC](https://www.ruby-forum.com/t/ann-houston-ruby-ror-group-meeting-for-april/56792 "2006-04-04T03:27:29Z")

</div>

The Houston Ruby/RoR group is getting together for discussion, food, and more food on Saturday 8 April at Pantera, a Houston restaurant with good food and free internet access :-). If you are in town and feel like joi…

---

## [Secure data storage](https://www.ruby-forum.com/t/secure-data-storage/93464)

<div class="topic-metadata">

**Author:** [@stian](https://www.ruby-forum.com/u/stian)\
**Replies:** 5\
**Last updated:** [April 4, 2006, 1:51am UTC](https://www.ruby-forum.com/t/secure-data-storage/93464 "2006-04-04T01:51:54Z")

</div>

Greetings, I am currently planning to write a diary type application using Ruby and FXruby, and I am therefor looking for a secure way of storing data. Using plain text files is of course out of the question, but I wa…

---

## [Setting class variable from parent class?](https://www.ruby-forum.com/t/setting-class-variable-from-parent-class/93455)

<div class="topic-metadata">

**Author:** [@marco](https://www.ruby-forum.com/u/marco)\
**Replies:** 5\
**Last updated:** [April 4, 2006, 1:45am UTC](https://www.ruby-forum.com/t/setting-class-variable-from-parent-class/93455 "2006-04-04T01:45:52Z")

</div>

Hi All! I’m trying to teach my Parent class how to set variables into its Child class; ie class Parent def self.set\_my\_class\_variable(value) reference\_to\_my\_class.my\_variable = value end end class Child set\_my\_c…

---

## [Better name for instance bypass method?](https://www.ruby-forum.com/t/better-name-for-instance-bypass-method/93497)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 2\
**Last updated:** [April 4, 2006, 12:54am UTC](https://www.ruby-forum.com/t/better-name-for-instance-bypass-method/93497 "2006-04-04T00:54:09Z")

</div>

Ths is used inside an object that clears out most of the Kernel methods (like BlankSlate). It allows one to get at those methods. class BasicObject # ... undefines Kernel methods ... class Instance \< self define\_me…

---

## [Re: www.ruby-doc.org not online?](https://www.ruby-forum.com/t/re-www-ruby-doc-org-not-online/93488)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [April 4, 2006, 12:23am UTC](https://www.ruby-forum.com/t/re-www-ruby-doc-org-not-online/93488 "2006-04-04T00:23:23Z")

</div>

server there. Is it just me, or is the site not there? It’s working for me: ping www.ruby-doc.org Pinging ruby-doc.org \[207.44.206.37\] with 32 bytes of data: Reply from 207.44.206.37: bytes=32 time=35ms TTL=45 R…

---

## [Can rubyzip do password protected files?](https://www.ruby-forum.com/t/can-rubyzip-do-password-protected-files/56777)

<div class="topic-metadata">

**Author:** [@JosSSSS\_Luis](https://www.ruby-forum.com/u/JosSSSS_Luis)\
**Replies:** 2\
**Last updated:** [April 3, 2006, 11:09pm UTC](https://www.ruby-forum.com/t/can-rubyzip-do-password-protected-files/56777 "2006-04-03T23:09:11Z")

</div>

Hi. I’ve been looking at the rubyzip docs and haven’t found anything concerning ziping/unziping password protected files. Does rubyzip or any other lib have that capability? Thanks in advance.

---

## [Images in generated rdoc?](https://www.ruby-forum.com/t/images-in-generated-rdoc/56779)

<div class="topic-metadata">

**Author:** [@aseldo](https://www.ruby-forum.com/u/aseldo)\
**Replies:** 1\
**Last updated:** [April 3, 2006, 11:06pm UTC](https://www.ruby-forum.com/t/images-in-generated-rdoc/56779 "2006-04-03T23:06:07Z")

</div>

Hi. I’m trying to incorporate some images in rdoc generated html. This is a rails project and I’ve cloned the doc:app task. In the README\_FOR\_APP file I have a reference to an image using the link tag, like so: link…

---

## [Mocking whole classes](https://www.ruby-forum.com/t/mocking-whole-classes/56750)

<div class="topic-metadata">

**Author:** [@thiagoalessio](https://www.ruby-forum.com/u/thiagoalessio)\
**Replies:** 1\
**Last updated:** [April 3, 2006, 10:59pm UTC](https://www.ruby-forum.com/t/mocking-whole-classes/56750 "2006-04-03T22:59:48Z")

</div>

Has anyone tried to mock whole classes (instead of mocking only the objects)? Classes are, like everything else in Ruby, just objects. This allows us to mock them just like we would mock any other object. I have been …

---

## [Www.ruby-doc.org not online?](https://www.ruby-forum.com/t/www-ruby-doc-org-not-online/93486)

<div class="topic-metadata">

**Author:** [@daveh](https://www.ruby-forum.com/u/daveh)\
**Replies:** 1\
**Last updated:** [April 3, 2006, 10:59pm UTC](https://www.ruby-forum.com/t/www-ruby-doc-org-not-online/93486 "2006-04-03T22:59:47Z")

</div>

I keep Googling up interesting sounding pages located somewhere on www.ruby-doc.org, but haven’t been able to actually find a running web server there. Is it just me, or is the site not there?

---

## [Ruby noobie, midi generator toy](https://www.ruby-forum.com/t/ruby-noobie-midi-generator-toy/56782)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 0\
**Last updated:** [April 3, 2006, 10:41pm UTC](https://www.ruby-forum.com/t/ruby-noobie-midi-generator-toy/56782 "2006-04-03T22:41:12Z")

</div>

Hi, I’ve been playing with Rails for a bit, still pretty new to Ruby itself, wrote something nifty and would be interested in feedback. http://www.gilesgoatboy.org/ruby/midi.html This is a simple file for generating m…

---

## [Rmagick gem path problem?](https://www.ruby-forum.com/t/rmagick-gem-path-problem/93477)

<div class="topic-metadata">

**Author:** [@bmgz](https://www.ruby-forum.com/u/bmgz)\
**Replies:** 2\
**Last updated:** [April 3, 2006, 10:19pm UTC](https://www.ruby-forum.com/t/rmagick-gem-path-problem/93477 "2006-04-03T22:19:37Z")

</div>

I am having a slight problem getting the rmagick gem loaded with rails… I can do this: require ‘RMagick’ =\> true Magick.inspect =\> “Magick” but this does not work: require ‘rubygems’ =\> true require\_gem ‘rmagic…

---

## [Dynamic code generation](https://www.ruby-forum.com/t/dynamic-code-generation/56613)

<div class="topic-metadata">

**Author:** [@thiagoalessio](https://www.ruby-forum.com/u/thiagoalessio)\
**Replies:** 11\
**Last updated:** [April 3, 2006, 9:58pm UTC](https://www.ruby-forum.com/t/dynamic-code-generation/56613 "2006-04-03T21:58:13Z")

</div>

I have been trying to do some simple dynamic code generation in Ruby. What I am specifically trying is to redefine a class level method on the subclasses. I know I may achieve that by using a simple def, but I would l…

---

## [DamageControl on Windows with CVS](https://www.ruby-forum.com/t/damagecontrol-on-windows-with-cvs/93478)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 0\
**Last updated:** [April 3, 2006, 9:56pm UTC](https://www.ruby-forum.com/t/damagecontrol-on-windows-with-cvs/93478 "2006-04-03T21:56:00Z")

</div>

I’m in the situation where we’re building a mix of .NET and C/C++ (and even some VB6) builds, but as of yet we don’t have a CI system. We’ve kind of adopted Rake for our actual build scripting (still in the translati…

---

## [Documentation question (ri and binding vs. get\_binding vd ge](https://www.ruby-forum.com/t/documentation-question-ri-and-binding-vs-get-binding-vd-ge/93475)

<div class="topic-metadata">

**Author:** [@john\_peter](https://www.ruby-forum.com/u/john_peter)\
**Replies:** 0\
**Last updated:** [April 3, 2006, 9:18pm UTC](https://www.ruby-forum.com/t/documentation-question-ri-and-binding-vs-get-binding-vd-ge/93475 "2006-04-03T21:18:24Z")

</div>

I was reading up on ERB documentation and a snippet on rhtml requiring the use of Object.get\_binding caught my attention: … rhtml = ERB.new(“someTemplate”) rhtml.run(someObject.get\_binding) … Curious about tools I …

---

## [Self.some\_attribute vs @some\_attribute](https://www.ruby-forum.com/t/self-some-attribute-vs-some-attribute/56687)

<div class="topic-metadata">

**Author:** [@fred](https://www.ruby-forum.com/u/fred)\
**Replies:** 5\
**Last updated:** [April 3, 2006, 7:25pm UTC](https://www.ruby-forum.com/t/self-some-attribute-vs-some-attribute/56687 "2006-04-03T19:25:49Z")

</div>

Hello, I just finished reading the Agile book. Of course I forgot at least the two thirds of what I read. I started reading the source code of Typo, to see a real (and Rails) application. I stumbled upon this snippet…

---

## [TkHTML progress, additional questions](https://www.ruby-forum.com/t/tkhtml-progress-additional-questions/93456)

<div class="topic-metadata">

**Author:** [@randy\_k](https://www.ruby-forum.com/u/randy_k)\
**Replies:** 0\
**Last updated:** [April 3, 2006, 6:05pm UTC](https://www.ruby-forum.com/t/tkhtml-progress-additional-questions/93456 "2006-04-03T18:05:10Z")

</div>

Progress: I finally made some progress setting up TkHTML and getting it to run both as a Ruby script and within irb. (The most basic thing I have to do is start irb (or Ruby) with prefixes like: LD\_LIBRARY\_PATH=/u…

---

## [Ruby/Tk (X,Y) Coordinate Question](https://www.ruby-forum.com/t/ruby-tk-x-y-coordinate-question/225889)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 13\
**Last updated:** [April 3, 2006, 5:58pm UTC](https://www.ruby-forum.com/t/ruby-tk-x-y-coordinate-question/225889 "2006-04-03T17:58:22Z")

</div>

How do I get the same (x,y) coordinate for a given relative location in the Ruby/tk application regardless of which widget I’m clicking on? Background: This has to do with a sudoku program I’m writing wherein I use th…

[Previous page](https://www.ruby-forum.com/c/ruby/7.md?page=1833)

[Next page](https://www.ruby-forum.com/c/ruby/7.md?page=1835)
