# Ruby

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

[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:** 1848

---

## [What on earth](https://www.ruby-forum.com/t/what-on-earth/85729)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 4\
**Last updated:** [March 23, 2006, 4:27am UTC](https://www.ruby-forum.com/t/what-on-earth/85729 "2006-03-23T04:27:15Z")

</div>

a = 5 puts Fixnum == a.class # spits out true spits out “Who knows what I am. :-(” case a.class when Fixnum puts “I’m a fixnum!” else puts “Who knows what I am. :-(” end What’s going on here? Joe

---

## [Bug in YAML for Ruby?](https://www.ruby-forum.com/t/bug-in-yaml-for-ruby/55695)

<div class="topic-metadata">

**Author:** [@hazmatt](https://www.ruby-forum.com/u/hazmatt)\
**Replies:** 3\
**Last updated:** [March 23, 2006, 2:50am UTC](https://www.ruby-forum.com/t/bug-in-yaml-for-ruby/55695 "2006-03-23T02:50:54Z")

</div>

I’m getting some strange behavior with YAML in ruby regarding the characters ‘08’ in a hash. This code: require ‘yaml’ test = { “08” =\> ‘01’, ‘01’ =\> ‘08’, ‘8’ =\> ‘01’ } File.open(“test.yml”, “w”) {|f| YAML.dump(t…

---

## [Bug: segfault when using super and method\_missing](https://www.ruby-forum.com/t/bug-segfault-when-using-super-and-method-missing/55699)

<div class="topic-metadata">

**Author:** [@bhutchins](https://www.ruby-forum.com/u/bhutchins)\
**Replies:** 5\
**Last updated:** [March 23, 2006, 2:50am UTC](https://www.ruby-forum.com/t/bug-segfault-when-using-super-and-method-missing/55699 "2006-03-23T02:50:26Z")

</div>

Hello, The following code produces a segfault with ruby-1.8.4 from gentoo, as well as with ruby-1.8 from cvs and 1.9 from cvs. There appears to be an issue when super is called in the subclass and the parent class h…

---

## [Ruby for programmers](https://www.ruby-forum.com/t/ruby-for-programmers/85036)

<div class="topic-metadata">

**Author:** [@ashiro](https://www.ruby-forum.com/u/ashiro)\
**Replies:** 8\
**Last updated:** [March 23, 2006, 2:43am UTC](https://www.ruby-forum.com/t/ruby-for-programmers/85036 "2006-03-23T02:43:47Z")

</div>

Hi all I’ve come across an online book concerning Ruby for Perl programmers but I’ve yet to find any for other languages. The Pick Axe book is a little to slow and simplistic telling far to many of the core fundamen…

---

## [Re: Windows Advanced Permissions on Folders](https://www.ruby-forum.com/t/re-windows-advanced-permissions-on-folders/85315)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [March 23, 2006, 2:13am UTC](https://www.ruby-forum.com/t/re-windows-advanced-permissions-on-folders/85315 "2006-03-23T02:13:53Z")

</div>

directory tree. …13 Detailed kinds of specific permissions for the folder File.set\_attr(file\_name, flags) support the following attributes: \* sparse\_file \* system \* temporary\* win32/file doco: http://rubyforge.or…

---

## [Duplicate keys in a Hash](https://www.ruby-forum.com/t/duplicate-keys-in-a-hash/55674)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 2\
**Last updated:** [March 22, 2006, 11:37pm UTC](https://www.ruby-forum.com/t/duplicate-keys-in-a-hash/55674 "2006-03-22T23:37:20Z")

</div>

In the code below it appears Ruby is permitting duplicate keys. What’s happening? –Brian h = {} h\[{}\] = “test1” #key is an empty hash h\[{}\] = “test2” #2nd key is an empty hash – two duplicate keys? h.size # 2 {}…

---

## [Ruby performance](https://www.ruby-forum.com/t/ruby-performance/55615)

<div class="topic-metadata">

**Author:** [@ksader](https://www.ruby-forum.com/u/ksader)\
**Replies:** 7\
**Last updated:** [March 22, 2006, 10:57pm UTC](https://www.ruby-forum.com/t/ruby-performance/55615 "2006-03-22T22:57:41Z")

</div>

I’m considering using Ruby to re-write and extract, transform, and load process for an online database. This will replace an existing VB system that does most of the T of the ETL in T-SQL(don’t ask). My replacement c…

---

## [Introspection of method parameters](https://www.ruby-forum.com/t/introspection-of-method-parameters/85607)

<div class="topic-metadata">

**Author:** [@ksader](https://www.ruby-forum.com/u/ksader)\
**Replies:** 6\
**Last updated:** [March 22, 2006, 10:54pm UTC](https://www.ruby-forum.com/t/introspection-of-method-parameters/85607 "2006-03-22T22:54:17Z")

</div>

I’m trying to find out the number and name of a method’s parameters. I’ve googled for ‘ruby method parameter introspection’ and come up with almost nothing. Is there a way to ask a method for the parameters it takes? …

---

## [Return code of process from IO](https://www.ruby-forum.com/t/return-code-of-process-from-io/55661)

<div class="topic-metadata">

**Author:** [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Replies:** 5\
**Last updated:** [March 22, 2006, 10:24pm UTC](https://www.ruby-forum.com/t/return-code-of-process-from-io/55661 "2006-03-22T22:24:05Z")

</div>

Hi folks, I’m using IO.popen to communicate with an external process. At some point the external process will exit either with a true or false condition. It uses shell return codes (0 for true, 1 for false) to indica…

---

## [Find.find and files in cwd](https://www.ruby-forum.com/t/find-find-and-files-in-cwd/55521)

<div class="topic-metadata">

**Author:** [@rtilley](https://www.ruby-forum.com/u/rtilley)\
**Replies:** 13\
**Last updated:** [March 22, 2006, 9:49pm UTC](https://www.ruby-forum.com/t/find-find-and-files-in-cwd/55521 "2006-03-22T21:49:57Z")

</div>

I can use Find.find(Pathname.getwd) to get an array of all file paths recursively, but how do I get only the files in the cwd (do not recurse into sub-directories)? Thank you, Brad

---

## [Why doesn't "to\_s" DWIM?](https://www.ruby-forum.com/t/why-doesnt-to-s-dwim/55638)

<div class="topic-metadata">

**Author:** [@Chris\_McMahon](https://www.ruby-forum.com/u/Chris_McMahon)\
**Replies:** 8\
**Last updated:** [March 22, 2006, 9:48pm UTC](https://www.ruby-forum.com/t/why-doesnt-to-s-dwim/55638 "2006-03-22T21:48:58Z")

</div>

How come to\_s doesn’t work here? #################################### require ‘test/unit’ class TOY\_CASE\<Test::Unit::TestCase def test\_toy\_test aoa = \[\[1,2,3\],\[4,5,6\]\] aoa.each do |arr| arr.each do |item| item = …

---

## [Ruby history](https://www.ruby-forum.com/t/ruby-history/85563)

<div class="topic-metadata">

**Author:** [@craigb](https://www.ruby-forum.com/u/craigb)\
**Replies:** 0\
**Last updated:** [March 22, 2006, 9:46pm UTC](https://www.ruby-forum.com/t/ruby-history/85563 "2006-03-22T21:46:15Z")

</div>

I am writing a report on the language Ruby, and I was wondering if anyone can give me some help. I have been researching the language and I can’t seem to find a good evolution of the language. I know it was formed w…

---

## [FreeRide - How to Input Data](https://www.ruby-forum.com/t/freeride-how-to-input-data/55631)

<div class="topic-metadata">

**Author:** [@Bill\_Kiselewsky](https://www.ruby-forum.com/u/Bill_Kiselewsky)\
**Replies:** 1\
**Last updated:** [March 22, 2006, 9:08pm UTC](https://www.ruby-forum.com/t/freeride-how-to-input-data/55631 "2006-03-22T21:08:07Z")

</div>

Hi, New to Ruby and using the FreeRIDE IDE. I tried to run the following simple program but can’t figure out how to enter data when the run stops at the second line of code. what’s the secret? puts ‘Hello there, and …

---

## [Mogilefs-1.0.1](https://www.ruby-forum.com/t/mogilefs-1-0-1/85479)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 1\
**Last updated:** [March 22, 2006, 8:35pm UTC](https://www.ruby-forum.com/t/mogilefs-1-0-1/85479 "2006-03-22T20:35:18Z")

</div>

Rubyforge Project: http://rubyforge.org/projects/rctools/ Documentation: http://dev.robotcoop.com/Libraries/mogilefs/ == About This is a client for Danga’s MogileFS distributed file system. For information on Mog…

---

## [A syntax question about nested 'each' blocks](https://www.ruby-forum.com/t/a-syntax-question-about-nested-each-blocks/85438)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [March 22, 2006, 7:50pm UTC](https://www.ruby-forum.com/t/a-syntax-question-about-nested-each-blocks/85438 "2006-03-22T19:50:44Z")

</div>

Would someone explain the syntax of nested blocs vis-a-vis the use of Array.each ? I thought that ‘lname’ would be an element of an Array in the program below. But the interpreter (ruby-1.8.4-1.fc3 in Fedora Core 3) …

---

## [Scope issue of variable in iterator](https://www.ruby-forum.com/t/scope-issue-of-variable-in-iterator/85398)

<div class="topic-metadata">

**Author:** [@Mohammad\_K](https://www.ruby-forum.com/u/Mohammad_K)\
**Replies:** 2\
**Last updated:** [March 22, 2006, 7:04pm UTC](https://www.ruby-forum.com/t/scope-issue-of-variable-in-iterator/85398 "2006-03-22T19:04:41Z")

</div>

mkhan@mkhan:~$ irb irb(main):001:0\> batman = ‘robin’ =\> “robin” irb(main):002:0\> \[ ‘cat’, ‘dog’, ‘horse’, ‘chicken’ \].each { |batman| puts batman } cat dog horse chicken =\> \[“cat”, “dog”, “horse”, “chicken”\] ir…

---

## [Reading from standard error](https://www.ruby-forum.com/t/reading-from-standard-error/55621)

<div class="topic-metadata">

**Author:** [@thiagoalessio](https://www.ruby-forum.com/u/thiagoalessio)\
**Replies:** 2\
**Last updated:** [March 22, 2006, 6:55pm UTC](https://www.ruby-forum.com/t/reading-from-standard-error/55621 "2006-03-22T18:55:18Z")

</div>

Maybe this one has already been answered somewhere. If so, my searching skills really suck. How can I start a sub-process from Ruby and read its standard error and standard output stream separately? I have tried to do…

---

## [Amazing Prices for Ruby Books on Amazon](https://www.ruby-forum.com/t/amazing-prices-for-ruby-books-on-amazon/55620)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 2\
**Last updated:** [March 22, 2006, 5:57pm UTC](https://www.ruby-forum.com/t/amazing-prices-for-ruby-books-on-amazon/55620 "2006-03-22T17:57:19Z")

</div>

The pickaxe is available on Amazon for $28.32 USD right now and Learn to Program by Chris P. is available for $12.97 USD. If you don’t have either of these books, you should and now would be a great time to order the…

---

## [Disabling reception of copies of my own messages sent to rub](https://www.ruby-forum.com/t/disabling-reception-of-copies-of-my-own-messages-sent-to-rub/55476)

<div class="topic-metadata">

**Author:** [@alder](https://www.ruby-forum.com/u/alder)\
**Replies:** 5\
**Last updated:** [March 22, 2006, 5:30pm UTC](https://www.ruby-forum.com/t/disabling-reception-of-copies-of-my-own-messages-sent-to-rub/55476 "2006-03-22T17:30:16Z")

</div>

Hi How can I tell ruby-talk to not send me copies of the messages I send to it? Regards, Alder G.

---

## [TCPSocket.accept blocks signals on win32?](https://www.ruby-forum.com/t/tcpsocket-accept-blocks-signals-on-win32/84745)

<div class="topic-metadata">

**Author:** [@Shea\_M](https://www.ruby-forum.com/u/Shea_M)\
**Replies:** 6\
**Last updated:** [March 22, 2006, 5:24pm UTC](https://www.ruby-forum.com/t/tcpsocket-accept-blocks-signals-on-win32/84745 "2006-03-22T17:24:07Z")

</div>

On Windows XP, ruby 1.8.4. I have this LISTENER = TCPServer.new( HOST, PORT ) s = LISTENER.accept host\_info = l\_session.peeraddr name = "#{host\_info\[2\]}@#{host\_info\[3\]}" puts( "new connection from #{name}", 'debug' ) …

---

## [Basic question](https://www.ruby-forum.com/t/basic-question/85357)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [March 22, 2006, 5:16pm UTC](https://www.ruby-forum.com/t/basic-question/85357 "2006-03-22T17:16:18Z")

</div>

Hello, Suppose “OOO.csv” is a data file with 9 columns, and I want to create a new file that is consisted of 2nd, 5th, and 7th columns of the OOO.csv (i.e., subset of the original), how do I do this? Thanks.

---

## [Seeking some of that old-time Smalltalk religion](https://www.ruby-forum.com/t/seeking-some-of-that-old-time-smalltalk-religion/55634)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 0\
**Last updated:** [March 22, 2006, 4:59pm UTC](https://www.ruby-forum.com/t/seeking-some-of-that-old-time-smalltalk-religion/55634 "2006-03-22T16:59:36Z")

</div>

I know there are some Smalltalk folks who hang out here, so I’d like to pose perhaps a fairly ignorant question: How far away is irb from a Smalltalk development environment? Put another way, what must need to be don…

---

## [Re: 'failed to allocate memory' with Mp3Info module](https://www.ruby-forum.com/t/re-failed-to-allocate-memory-with-mp3info-module/55625)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [March 22, 2006, 4:33pm UTC](https://www.ruby-forum.com/t/re-failed-to-allocate-memory-with-mp3info-module/55625 "2006-03-22T16:33:16Z")

</div>

I’m pretty new to Ruby \[this is my second script\], but I’m trying to files.each do |f| with: Looks to me like you’re just running out of memory, since that line is just an IO#read. I think Mp3Info is not freeing…

---

## [Rdoc -\> chm file failing](https://www.ruby-forum.com/t/rdoc-chm-file-failing/55624)

<div class="topic-metadata">

**Author:** [@Mirek](https://www.ruby-forum.com/u/Mirek)\
**Replies:** 0\
**Last updated:** [March 22, 2006, 4:04pm UTC](https://www.ruby-forum.com/t/rdoc-chm-file-failing/55624 "2006-03-22T16:04:05Z")

</div>

Hello, my name is Mirek, I’m Pythonist, just newbie to Ruby. I’m having a little problem with generating chm help file: cd c:\\ruby\\lib rdoc -f chm -o chm\_out \* builds at first fine, but at the end there are many e…

---

## ["str1" == "STR1" case insensitive](https://www.ruby-forum.com/t/str1-str1-case-insensitive/84838)

<div class="topic-metadata">

**Author:** [@Shea\_M](https://www.ruby-forum.com/u/Shea_M)\
**Replies:** 7\
**Last updated:** [March 22, 2006, 2:49pm UTC](https://www.ruby-forum.com/t/str1-str1-case-insensitive/84838 "2006-03-22T14:49:18Z")

</div>

For doing case insensitive comparisons, I have been using if str1.casecmp(str2)==0 puts ‘equal’ else puts ‘not equal’ end Is their a way to do this with simpler syntax? ~S

---

## [Net::HTTP when server doesn' exists?](https://www.ruby-forum.com/t/net-http-when-server-doesn-exists/85278)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 22, 2006, 2:28pm UTC](https://www.ruby-forum.com/t/net-http-when-server-doesn-exists/85278 "2006-03-22T14:28:56Z")

</div>

i did like to classify some urls : server exists, document exists i’m able to discriminated when server exists and document doesn’t. however when the server doesn’t exists i get an error message : SocketError: getadd…

---

## [Real-Time Graphing](https://www.ruby-forum.com/t/real-time-graphing/55380)

<div class="topic-metadata">

**Author:** [@pazuzu](https://www.ruby-forum.com/u/pazuzu)\
**Replies:** 4\
**Last updated:** [March 22, 2006, 2:21pm UTC](https://www.ruby-forum.com/t/real-time-graphing/55380 "2006-03-22T14:21:16Z")

</div>

Hello all . I’m still kind of new to Ruby and trying to graph data in real-time but I can’t seem to find a suitable graphing engine. I’ve sniffed around using my friend Google, but I didn’t find anything concrete. …

---

## [I need a Ruby U.I Designer](https://www.ruby-forum.com/t/i-need-a-ruby-u-i-designer/85277)

<div class="topic-metadata">

**Author:** [@Alexander\_Perryman](https://www.ruby-forum.com/u/Alexander_Perryman)\
**Replies:** 0\
**Last updated:** [March 22, 2006, 1:16pm UTC](https://www.ruby-forum.com/t/i-need-a-ruby-u-i-designer/85277 "2006-03-22T13:16:24Z")

</div>

Any of you guys worked with JSF, Eclipse and Ruby? I need to hire a User Interface Designer to work with my prestigious company in England. Drop me an email, or give me a call on +44 (0) 208 9955500 .

---

## [Re: undefined method \`add\_assertion' for nil:NilClass](https://www.ruby-forum.com/t/re-undefined-method-add-assertion-for-nil-nilclass/85041)

<div class="topic-metadata">

**Author:** [@PaatschS\_Bernd](https://www.ruby-forum.com/u/PaatschS_Bernd)\
**Replies:** 1\
**Last updated:** [March 22, 2006, 10:41am UTC](https://www.ruby-forum.com/t/re-undefined-method-add-assertion-for-nil-nilclass/85041 "2006-03-22T10:41:09Z")

</div>

I started with ruby about 6 weeks ago. So I am pretty new. The code I have contains out of 4 files and works only with a specific underlying application, which I manipulate through the code. Maybe I am misuderstandin…

---

## [Windows Advanced Permissions on Folders](https://www.ruby-forum.com/t/windows-advanced-permissions-on-folders/55552)

<div class="topic-metadata">

**Author:** [@acall](https://www.ruby-forum.com/u/acall)\
**Replies:** 2\
**Last updated:** [March 22, 2006, 8:09am UTC](https://www.ruby-forum.com/t/windows-advanced-permissions-on-folders/55552 "2006-03-22T08:09:01Z")

</div>

In a MS-Windows environment I know how to recurse all the folders using a Dir.glob statement that starts a certain level of the directory tree. I am struggling with a way in Ruby to set the advanced permissions for ce…

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

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