# Ruby

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

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

---

## [Ruby Reports 0.4.4](https://www.ruby-forum.com/t/ruby-reports-0-4-4/62574)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [June 6, 2006, 7:28am UTC](https://www.ruby-forum.com/t/ruby-reports-0-4-4/62574 "2006-06-06T07:28:59Z")

</div>

== Ruport 0.4.4 == The “Hey, I’ve got a brand new formatting engine” Edition == About == Ruby Reports is a software library that aims to make the task of reporting less tedious and painful. It provides tools for data …

---

## [Modules / Documentation / CPAN like repository?](https://www.ruby-forum.com/t/modules-documentation-cpan-like-repository/95558)

<div class="topic-metadata">

**Author:** [@Paul\_DSKraus](https://www.ruby-forum.com/u/Paul_DSKraus)\
**Replies:** 2\
**Last updated:** [June 6, 2006, 5:59am UTC](https://www.ruby-forum.com/t/modules-documentation-cpan-like-repository/95558 "2006-06-06T05:59:57Z")

</div>

I am having a blast with ruby and the more I convert my Perl code to ruby , and then RE FACTOR… well its just so much better to read that I am blown away. I keep running into situations where I have some cpan module…

---

## [An alternative to the class Foo \< Struct.new(vars) idiom and](https://www.ruby-forum.com/t/an-alternative-to-the-class-foo-struct-new-vars-idiom-and/62202)

<div class="topic-metadata">

**Author:** [@tulkas](https://www.ruby-forum.com/u/tulkas)\
**Replies:** 15\
**Last updated:** [June 6, 2006, 5:32am UTC](https://www.ruby-forum.com/t/an-alternative-to-the-class-foo-struct-new-vars-idiom-and/62202 "2006-06-06T05:32:24Z")

</div>

I wrote this a couple weeks ago ( eigenclass.org ) and was considering whether it deserves an actual release. The implementation is simple; taking just 40 lines of code, it allows you to do stuff like class MyClass \< …

---

## [FasterCSV RCR?](https://www.ruby-forum.com/t/fastercsv-rcr/95295)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 27\
**Last updated:** [June 6, 2006, 3:43am UTC](https://www.ruby-forum.com/t/fastercsv-rcr/95295 "2006-06-06T03:43:16Z")

</div>

I’m considering submitting my first RCR to add FasterCSV to the Standard Library. It’s a pretty mature library now, has a CSV compatibility mode, is very feature rich (including many CSV lacks), and is wicked fast in …

---

## [Equivalent of collections in Java](https://www.ruby-forum.com/t/equivalent-of-collections-in-java/61606)

<div class="topic-metadata">

**Author:** [@Krekna\_M](https://www.ruby-forum.com/u/Krekna_M)\
**Replies:** 17\
**Last updated:** [June 6, 2006, 3:30am UTC](https://www.ruby-forum.com/t/equivalent-of-collections-in-java/61606 "2006-06-06T03:30:49Z")

</div>

Hi list, I am reading the “from concepts to code” book from Jacquie Barker, but this book uses Java as the language to learn OO programming. This doesn’t bother me at all although I’m learning Ruby, but sometimes I d…

---

## [Directory.entries problems with while loops](https://www.ruby-forum.com/t/directory-entries-problems-with-while-loops/62491)

<div class="topic-metadata">

**Author:** [@customsgod](https://www.ruby-forum.com/u/customsgod)\
**Replies:** 7\
**Last updated:** [June 6, 2006, 3:21am UTC](https://www.ruby-forum.com/t/directory-entries-problems-with-while-loops/62491 "2006-06-06T03:21:42Z")

</div>

I am trying to create an array with all the files of a directory of a certain file type. I use Directory.entries to get an array of all the files and folders in the directory. Then when i try to use a while loop to so…

---

## [Proposing: A new Ruby Windows installer](https://www.ruby-forum.com/t/proposing-a-new-ruby-windows-installer/61402)

<div class="topic-metadata">

**Author:** [@Enterprise\_A](https://www.ruby-forum.com/u/Enterprise_A)\
**Replies:** 49\
**Last updated:** [June 6, 2006, 2:38am UTC](https://www.ruby-forum.com/t/proposing-a-new-ruby-windows-installer/61402 "2006-06-06T02:38:33Z")

</div>

I understand projects like the Ruby Installer for Windows exists, but what I’m wondering is: Why not have AllInOneRuby with gems embedded into it call a gem that has the Ruby bits and a local copy of Ruby and then fol…

---

## [Give me your poor, your hungry, your Rakefiles](https://www.ruby-forum.com/t/give-me-your-poor-your-hungry-your-rakefiles/61814)

<div class="topic-metadata">

**Author:** [@kdclark](https://www.ruby-forum.com/u/kdclark)\
**Replies:** 3\
**Last updated:** [June 6, 2006, 1:15am UTC](https://www.ruby-forum.com/t/give-me-your-poor-your-hungry-your-rakefiles/61814 "2006-06-06T01:15:21Z")

</div>

So lets get this summer of code thing started. I figure the best way to pull Rakefile generation code into a library is to have lots of Rakefiles to work with. I’m specificly looking for Rakefiles used to compile C pr…

---

## [Ruby Whitepapers](https://www.ruby-forum.com/t/ruby-whitepapers/62534)

<div class="topic-metadata">

**Author:** [@xmg-eric](https://www.ruby-forum.com/u/xmg-eric)\
**Replies:** 1\
**Last updated:** [June 6, 2006, 12:07am UTC](https://www.ruby-forum.com/t/ruby-whitepapers/62534 "2006-06-06T00:07:37Z")

</div>

I wrote a series of articles last week, and created a pointer to them at Artima, where it’s easy to collect comments: Ruby Makes My Head Explode http://www.artima.com/weblogs/viewpost.jsp?thread=162885 The collectio…

---

## [Ri, rdoc, gems, and the ruby\_site directory](https://www.ruby-forum.com/t/ri-rdoc-gems-and-the-ruby-site-directory/62289)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 4\
**Last updated:** [June 5, 2006, 11:40pm UTC](https://www.ruby-forum.com/t/ri-rdoc-gems-and-the-ruby-site-directory/62289 "2006-06-05T23:40:09Z")

</div>

I’m on Debian GNU/Linux, but installed from source to my /opt directory (–prefix=/opt/ruby-1.8.4). If I write some modules and want everyone at the site to be able to access them, should I copy them to /opt/ruby-1.…

---

## [Rake questions](https://www.ruby-forum.com/t/rake-questions/95485)

<div class="topic-metadata">

**Author:** [@xmg-eric](https://www.ruby-forum.com/u/xmg-eric)\
**Replies:** 2\
**Last updated:** [June 5, 2006, 11:24pm UTC](https://www.ruby-forum.com/t/rake-questions/95485 "2006-06-05T23:24:37Z")

</div>

Is there some reason to prefer sh %{ls -ltr} over sh “ls -ltr” ? My standard csh idiom for creating a log file is this: ls |& tee test.log But when I try that in sh, the process hangs, and nothing is written…

---

## [Object Troubles - undefined method \`+'](https://www.ruby-forum.com/t/object-troubles-undefined-method/62528)

<div class="topic-metadata">

**Author:** [@Paul\_DSKraus](https://www.ruby-forum.com/u/Paul_DSKraus)\
**Replies:** 4\
**Last updated:** [June 5, 2006, 10:21pm UTC](https://www.ruby-forum.com/t/object-troubles-undefined-method/62528 "2006-06-05T22:21:24Z")

</div>

I am parsing a text file that is 3 fields per line deliminted by pipes ‘|’ Each line contains a customer code, shipmethod, and customer name. Each line represents an invoice that was cut. I need to count all invoices…

---

## [Ruby on mobile devices?](https://www.ruby-forum.com/t/ruby-on-mobile-devices/62492)

<div class="topic-metadata">

**Author:** [@capnregex](https://www.ruby-forum.com/u/capnregex)\
**Replies:** 1\
**Last updated:** [June 5, 2006, 9:33pm UTC](https://www.ruby-forum.com/t/ruby-on-mobile-devices/62492 "2006-06-05T21:33:17Z")

</div>

Hi, Anyone seen any work on running Ruby on mobile devices like mobile phones? In theory I guess something like JRuby could be used for this but has there been any real work done? Why should it / should it not work? …

---

## [Nebular Gauntlet 0.1](https://www.ruby-forum.com/t/nebular-gauntlet-0-1/62448)

<div class="topic-metadata">

**Author:** [@S-redyck](https://www.ruby-forum.com/u/S-redyck)\
**Replies:** 2\
**Last updated:** [June 5, 2006, 9:17pm UTC](https://www.ruby-forum.com/t/nebular-gauntlet-0-1/62448 "2006-06-05T21:17:51Z")

</div>

Hi, I have been developing a game based in ruby for about a year now and have finally decided to release an alpha version. Right now the basics are in the game, but a lot of features can still be added and fairly eas…

---

## [foxGUIb v0.7 (for FXRuby 1.6)](https://www.ruby-forum.com/t/foxguib-v0-7-for-fxruby-1-6/62445)

<div class="topic-metadata">

**Author:** [@Meinrad\_R](https://www.ruby-forum.com/u/Meinrad_R)\
**Replies:** 1\
**Last updated:** [June 5, 2006, 7:25pm UTC](https://www.ruby-forum.com/t/foxguib-v0-7-for-fxruby-1-6/62445 "2006-06-05T19:25:23Z")

</div>

dear (FX)Ruby hackers, lyle has released FXRuby 1.6.0 some days ago. so it was a good opportunity for me to fix some more bugs and release annother version of foxGUIb which is tested against FXRuby 1.6.0. the most in…

---

## [Why doesn't method\_missing affect respond\_to?](https://www.ruby-forum.com/t/why-doesnt-method-missing-affect-respond-to/62481)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 6\
**Last updated:** [June 5, 2006, 7:01pm UTC](https://www.ruby-forum.com/t/why-doesnt-method-missing-affect-respond-to/62481 "2006-06-05T19:01:38Z")

</div>

Take this class: class Foo def method\_missing(m, \*args) m.to\_s end end irb(main):006:0\> Foo.new.foo =\> “foo” irb(main):007:0\> Foo.respond\_to? :foo =\> false This obviously just returns the name of any method tha…

---

## [Need help with TDD, stubs and mocks](https://www.ruby-forum.com/t/need-help-with-tdd-stubs-and-mocks/95533)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [June 5, 2006, 7:00pm UTC](https://www.ruby-forum.com/t/need-help-with-tdd-stubs-and-mocks/95533 "2006-06-05T19:00:19Z")

</div>

I’m writing a script to process a directory structure and some files within it. The process depth-first searches the directory tree from some root and looks for a Manifest file. When it finds it, it processes the file…

---

## [Window path runtime error](https://www.ruby-forum.com/t/window-path-runtime-error/95535)

<div class="topic-metadata">

**Author:** [@customsgod](https://www.ruby-forum.com/u/customsgod)\
**Replies:** 0\
**Last updated:** [June 5, 2006, 6:17pm UTC](https://www.ruby-forum.com/t/window-path-runtime-error/95535 "2006-06-05T18:17:12Z")

</div>

I am quite the newbie when it comes to exception handling so i was just wondering what i would do when i rescue this runtime error, RuntimeError: bad window path name “.w00004.w00005” it occurs when i close a root win…

---

## [\[SOLUTION\] Hash to OpenStruct (#81)](https://www.ruby-forum.com/t/solution-hash-to-openstruct-81/62436)

<div class="topic-metadata">

**Author:** [@MenTaLguY](https://www.ruby-forum.com/u/MenTaLguY)\
**Replies:** 1\
**Last updated:** [June 5, 2006, 6:09pm UTC](https://www.ruby-forum.com/t/solution-hash-to-openstruct-81/62436 "2006-06-05T18:09:53Z")

</div>

I’ve got three. ATTEMPT #1 My first attempt was pretty simple: require 'ostruct' def hashes\_to\_openstructs( obj ) return obj unless Hash === obj OpenStruct.new( Hash\[ \*obj.inject( \[\] ) { |…

---

## [Using Ant from Ruby](https://www.ruby-forum.com/t/using-ant-from-ruby/95536)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [June 5, 2006, 6:06pm UTC](https://www.ruby-forum.com/t/using-ant-from-ruby/95536 "2006-06-05T18:06:22Z")

</div>

Hi I am writing a Ruby script to automate some process. Part of it involves running an ant script ( the java build tool from apache). But, I am finding it difficult to make it work. I tried system(‘ant’) but it didn’…

---

## [Tk button widgets](https://www.ruby-forum.com/t/tk-button-widgets/62305)

<div class="topic-metadata">

**Author:** [@customsgod](https://www.ruby-forum.com/u/customsgod)\
**Replies:** 3\
**Last updated:** [June 5, 2006, 5:59pm UTC](https://www.ruby-forum.com/t/tk-button-widgets/62305 "2006-06-05T17:59:11Z")

</div>

I wrote a basic GUI on a windows machine and when i tested it on Mac OS X tiger for some reason some of my button widgets are completely hidden in only some of the windows and reappear when you hit tab. I’ve been tryi…

---

## [Q about instance\_eval](https://www.ruby-forum.com/t/q-about-instance-eval/62504)

<div class="topic-metadata">

**Author:** [@victor123789](https://www.ruby-forum.com/u/victor123789)\
**Replies:** 0\
**Last updated:** [June 5, 2006, 5:55pm UTC](https://www.ruby-forum.com/t/q-about-instance-eval/62504 "2006-06-05T17:55:55Z")

</div>

Hi all. I tried some strange kind of things. class DomNode attr\_accessor :handler def event\_handler=(str) @handler = eval(str) end def on\_event(\*arg); @handler\[\*arg\] end end #usage node.event\_handler = ‘self\[“s…

---

## [Rubyforge/gem problems](https://www.ruby-forum.com/t/rubyforge-gem-problems/62426)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [June 5, 2006, 5:36pm UTC](https://www.ruby-forum.com/t/rubyforge-gem-problems/62426 "2006-06-05T17:36:27Z")

</div>

any idea what’s going on here? harp:~ \> gem list 'slave.\*' --remote \*\*\* REMOTE GEMS \*\*\* slave (0.0.0) slave harp:~ \> gem install 'slave.\*' --remote Attempting remote installation of 'slave.\*' ERROR: Wh…

---

## [FXRuby: updating a text label/positioning question](https://www.ruby-forum.com/t/fxruby-updating-a-text-label-positioning-question/62487)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [June 5, 2006, 5:28pm UTC](https://www.ruby-forum.com/t/fxruby-updating-a-text-label-positioning-question/62487 "2006-06-05T17:28:54Z")

</div>

Dear all, in a GUI, I want to display some text from inside a text file in a text field. When starting the application, it looks roughly like this ################ filelist window ################ contents of file: …

---

## [Ruby-breakpoint 0.5.1: Now with less bugs](https://www.ruby-forum.com/t/ruby-breakpoint-0-5-1-now-with-less-bugs/62493)

<div class="topic-metadata">

**Author:** [@skade](https://www.ruby-forum.com/u/skade)\
**Replies:** 0\
**Last updated:** [June 5, 2006, 3:57pm UTC](https://www.ruby-forum.com/t/ruby-breakpoint-0-5-1-now-with-less-bugs/62493 "2006-06-05T15:57:59Z")

</div>

I’ve finally decided to do a bug fix release for ruby-breakpoint. In the near future you can expect more news from this project as I’ll be working on it for this year’s Summer of Code. See the TODO for what is planned…

---

## [Please kill the children as you're leaving](https://www.ruby-forum.com/t/please-kill-the-children-as-youre-leaving/62416)

<div class="topic-metadata">

**Author:** [@ohad](https://www.ruby-forum.com/u/ohad)\
**Replies:** 9\
**Last updated:** [June 5, 2006, 3:36pm UTC](https://www.ruby-forum.com/t/please-kill-the-children-as-youre-leaving/62416 "2006-06-05T15:36:10Z")

</div>

Sorry about the Macabre, but that’s essentially what I want: It seems that children of my process (created using fork) get reparanted to init when my process dies unexpectedly. I’d like to have them all die on the spo…

---

## [Parsing a boolean expression](https://www.ruby-forum.com/t/parsing-a-boolean-expression/62468)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 4\
**Last updated:** [June 5, 2006, 2:37pm UTC](https://www.ruby-forum.com/t/parsing-a-boolean-expression/62468 "2006-06-05T14:37:43Z")

</div>

Hi all, I need to take a string typed by dirty users’ fingers, that should contain a boolean expression, like this: one and (two or three or (four and five) or six) and (seven or eight) …and parse it into some kind …

---

## [Class args](https://www.ruby-forum.com/t/class-args/95519)

<div class="topic-metadata">

**Author:** [@stuartbrand](https://www.ruby-forum.com/u/stuartbrand)\
**Replies:** 4\
**Last updated:** [June 5, 2006, 2:02pm UTC](https://www.ruby-forum.com/t/class-args/95519 "2006-06-05T14:02:27Z")

</div>

Whats wrong with this class? class ReadFile def ReadFile.openAndRead(arg) f = File.open(arg, “r”) yield f f.close() end end when it run I get a initialize’: No such file or directory - thefileiwanttoopen Any Id…

---

## [Isset kinda function](https://www.ruby-forum.com/t/isset-kinda-function/62477)

<div class="topic-metadata">

**Author:** [@copot](https://www.ruby-forum.com/u/copot)\
**Replies:** 6\
**Last updated:** [June 5, 2006, 1:32pm UTC](https://www.ruby-forum.com/t/isset-kinda-function/62477 "2006-06-05T13:32:36Z")

</div>

Looking for something like PHP’s isset.

---

## [Fcgid or FastCGI](https://www.ruby-forum.com/t/fcgid-or-fastcgi/62480)

<div class="topic-metadata">

**Author:** [@tma](https://www.ruby-forum.com/u/tma)\
**Replies:** 0\
**Last updated:** [June 5, 2006, 1:23pm UTC](https://www.ruby-forum.com/t/fcgid-or-fastcgi/62480 "2006-06-05T13:23:12Z")

</div>

OK, I’m a very slow starter… Perhaps it’s caution? I’m slowing bringing myself up to using Ruby on Rails and have been working around some of the edges before I jump right into the middle. I’m working on Ruby as a l…

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

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