# Ruby

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

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

---

## [Rant 0.5.4](https://www.ruby-forum.com/t/rant-0-5-4/71971)

<div class="topic-metadata">

**Author:** [@stefanl38](https://www.ruby-forum.com/u/stefanl38)\
**Replies:** 6\
**Last updated:** [December 19, 2005, 11:41pm UTC](https://www.ruby-forum.com/t/rant-0-5-4/71971 "2005-12-19T23:41:56Z")

</div>

Rant is a flexible build tool written entirely in Ruby, similar to Rake. == What’s new in this release? This is mainly a bugfix release. Fix a rule bug where a custom rule task wouldn’t find it’s prerequisites in …

---

## [New to coding, lost as hell](https://www.ruby-forum.com/t/new-to-coding-lost-as-hell/50498)

<div class="topic-metadata">

**Author:** [@mikari](https://www.ruby-forum.com/u/mikari)\
**Replies:** 15\
**Last updated:** [December 19, 2005, 11:40pm UTC](https://www.ruby-forum.com/t/new-to-coding-lost-as-hell/50498 "2005-12-19T23:40:10Z")

</div>

I’ve been looking into coding for a while now and would really like to start. Thanks to Google and a few friends I found Ruby and think it would be an excellent place to start. I’ve installed ruby (It says it’s Ruby 1…

---

## [Re: Point an element in Hash Object](https://www.ruby-forum.com/t/re-point-an-element-in-hash-object/72745)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 1\
**Last updated:** [December 19, 2005, 11:31pm UTC](https://www.ruby-forum.com/t/re-point-an-element-in-hash-object/72745 "2005-12-19T23:31:09Z")

</div>

This is ok… but i have a question. If i dump the hash into a YAML file, then when i load it, the reference is lost and there are only copies of the same values. How can I mantain that reference when I dump/load the …

---

## [Vim-ruby installation](https://www.ruby-forum.com/t/vim-ruby-installation/54089)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [December 19, 2005, 11:09pm UTC](https://www.ruby-forum.com/t/vim-ruby-installation/54089 "2005-12-19T23:09:50Z")

</div>

I’ve read though a bunch of the vim-ruby posts in this group, and others, and still can’t get my vim-ruby installation functioning properly. Here is what I’ve done: Installed the latest vim-ruby from RubyForge Did …

---

## [Is there a way to use a proc like a method?](https://www.ruby-forum.com/t/is-there-a-way-to-use-a-proc-like-a-method/72639)

<div class="topic-metadata">

**Author:** [@hochherz](https://www.ruby-forum.com/u/hochherz)\
**Replies:** 5\
**Last updated:** [December 19, 2005, 11:03pm UTC](https://www.ruby-forum.com/t/is-there-a-way-to-use-a-proc-like-a-method/72639 "2005-12-19T23:03:48Z")

</div>

is there a way to use a proc like a method? like: class A def initialize @av=10; end def do(mproc) mproc.call(); end def rt() @av; end end a=proc{@av=111} #something different b=A.new b.do(a) b.rt #return …

---

## [Regular expressions question](https://www.ruby-forum.com/t/regular-expressions-question/50286)

<div class="topic-metadata">

**Author:** [@akoSS](https://www.ruby-forum.com/u/akoSS)\
**Replies:** 69\
**Last updated:** [December 19, 2005, 10:48pm UTC](https://www.ruby-forum.com/t/regular-expressions-question/50286 "2005-12-19T22:48:44Z")

</div>

hello, i need to capture all matches for a group. for example if ‘ab c’ =~ /^(.)\*$/ i would like to get array \[ ‘a’, ‘b’, ’ ', ‘c’ \] could not figure out how to do it in ruby. String#scan did not seem to be the righ…

---

## [Rails + Amazon](https://www.ruby-forum.com/t/rails-amazon/72636)

<div class="topic-metadata">

**Author:** [@Rubena\_Rub](https://www.ruby-forum.com/u/Rubena_Rub)\
**Replies:** 8\
**Last updated:** [December 19, 2005, 10:21pm UTC](https://www.ruby-forum.com/t/rails-amazon/72636 "2005-12-19T22:21:27Z")

</div>

Hi, I am new to ruby and just trying to get into Rails. Very interesting and I hope I will be getting into it fast… thanks a lot to all the amazing work done on this project! OK, my question now :wink: How to integr…

---

## [Shortcut to self.class?](https://www.ruby-forum.com/t/shortcut-to-self-class/50611)

<div class="topic-metadata">

**Author:** [@Mark\_J.Reed](https://www.ruby-forum.com/u/Mark_J.Reed)\
**Replies:** 8\
**Last updated:** [December 19, 2005, 9:29pm UTC](https://www.ruby-forum.com/t/shortcut-to-self-class/50611 "2005-12-19T21:29:19Z")

</div>

Without writing my own alias, is there an easy way to get the class of the current object without calling self.class? I’m trying to call class methods from within an instance method, and self.class.method\_name is jus…

---

## [Ruby tail recursion](https://www.ruby-forum.com/t/ruby-tail-recursion/50433)

<div class="topic-metadata">

**Author:** [@marke](https://www.ruby-forum.com/u/marke)\
**Replies:** 18\
**Last updated:** [December 19, 2005, 9:04pm UTC](https://www.ruby-forum.com/t/ruby-tail-recursion/50433 "2005-12-19T21:04:25Z")

</div>

In another thread someone mentioned tail recursion doesn’t work right in Ruby. Could someone please expand upon that?

---

## [Ruby Evangelism Through Wikipedia](https://www.ruby-forum.com/t/ruby-evangelism-through-wikipedia/50667)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 0\
**Last updated:** [December 19, 2005, 8:49pm UTC](https://www.ruby-forum.com/t/ruby-evangelism-through-wikipedia/50667 "2005-12-19T20:49:05Z")

</div>

Why not beef up the wikipedia article about Ruby? I just quickly made a section about exceptions, but it could use a little lovin’. I figure WP is one of the first places interested ruby-nubies go, so making the artic…

---

## [Bug in remove\_entry\_secure](https://www.ruby-forum.com/t/bug-in-remove-entry-secure/72491)

<div class="topic-metadata">

**Author:** [@Colin\_JN\_Breame](https://www.ruby-forum.com/u/Colin_JN_Breame)\
**Replies:** 0\
**Last updated:** [December 19, 2005, 7:18pm UTC](https://www.ruby-forum.com/t/bug-in-remove-entry-secure/72491 "2005-12-19T19:18:18Z")

</div>

FileUtil.remove\_entry\_secure seems to be broken in my version (1.8.4). I get: undefined method fu\_world\_writable?' for FileUtils:Module /usr/lib/ruby/1.8/fileutils.rb:680:inremove\_entry\_secure’ #{RAILS\_ROOT}/app/model…

---

## [Re: Point an element in Hash Object](https://www.ruby-forum.com/t/re-point-an-element-in-hash-object/51358)

<div class="topic-metadata">

**Author:** [@daniels](https://www.ruby-forum.com/u/daniels)\
**Replies:** 3\
**Last updated:** [December 19, 2005, 5:39pm UTC](https://www.ruby-forum.com/t/re-point-an-element-in-hash-object/51358 "2005-12-19T17:39:46Z")

</div>

I thought something like this was in facets… maybe it was one of those other library collections… either way I can’t find what I’m looking for, so here’s an implementation which probably screws up with some corner cas…

---

## [TheYAML change the id of Object](https://www.ruby-forum.com/t/theyaml-change-the-id-of-object/50643)

<div class="topic-metadata">

**Author:** [@andrea](https://www.ruby-forum.com/u/andrea)\
**Replies:** 7\
**Last updated:** [December 19, 2005, 5:14pm UTC](https://www.ruby-forum.com/t/theyaml-change-the-id-of-object/50643 "2005-12-19T17:14:57Z")

</div>

I’m using an hash object and i use a Termine Object for the key and, for now, a String for the value. The class Termine is this: class Termine DEFAULT\_LANG = “it” attr\_accessor :descrizione attr\_accessor :lingua d…

---

## [Ruby and XML, validation and DOM](https://www.ruby-forum.com/t/ruby-and-xml-validation-and-dom/50578)

<div class="topic-metadata">

**Author:** [@gendag](https://www.ruby-forum.com/u/gendag)\
**Replies:** 5\
**Last updated:** [December 19, 2005, 3:35pm UTC](https://www.ruby-forum.com/t/ruby-and-xml-validation-and-dom/50578 "2005-12-19T15:35:37Z")

</div>

Hi all, I’ve started to learn Ruby two days ago and it’s fantastic! :slight\_smile: I need I help, i need a lib to validate a XML file and to create a DOM tree. I’ve search in the web but I didn’t find anuthing, in tr…

---

## [My RRobots submission](https://www.ruby-forum.com/t/my-rrobots-submission/50642)

<div class="topic-metadata">

**Author:** [@Maurizio\_Monge](https://www.ruby-forum.com/u/Maurizio_Monge)\
**Replies:** 0\
**Last updated:** [December 19, 2005, 3:29pm UTC](https://www.ruby-forum.com/t/my-rrobots-submission/50642 "2005-12-19T15:29:35Z")

</div>

Hi, this is a robot that i wrote for fun some time ago. I’m no ruby expert, and i’d quite sure most of you would have done it in a better way, but I’m very curious to see how it will perform vs some other serious rob…

---

## [How do I do this in ruby?](https://www.ruby-forum.com/t/how-do-i-do-this-in-ruby/50631)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [December 19, 2005, 2:35pm UTC](https://www.ruby-forum.com/t/how-do-i-do-this-in-ruby/50631 "2005-12-19T14:35:27Z")

</div>

Hi, I am trying to write a script that downloads my web server statistics that is stored in an online MS SQL Database to a local database for further processing and then deletes the downloaded records (to save space …

---

## [Fosdem, dev room](https://www.ruby-forum.com/t/fosdem-dev-room/50637)

<div class="topic-metadata">

**Author:** [@0perator](https://www.ruby-forum.com/u/0perator)\
**Replies:** 0\
**Last updated:** [December 19, 2005, 2:11pm UTC](https://www.ruby-forum.com/t/fosdem-dev-room/50637 "2005-12-19T14:11:22Z")

</div>

hi, Since there wasn’t a lot of replies to my previous mails and that all the rooms are booked, there won’t be any Ruby Dev Room. The wiki ( http://fosdem.librium.org ) is still up and will stay up until the Fosdem j…

---

## [Re: How do I do this in ruby?](https://www.ruby-forum.com/t/re-how-do-i-do-this-in-ruby/50635)

<div class="topic-metadata">

**Author:** [@piet](https://www.ruby-forum.com/u/piet)\
**Replies:** 0\
**Last updated:** [December 19, 2005, 12:32pm UTC](https://www.ruby-forum.com/t/re-how-do-i-do-this-in-ruby/50635 "2005-12-19T12:32:10Z")

</div>

You could make 2 scripts: One that downloads the stats to your local db. One that deletes the new records it finds in your local db from your remote db, that way you’re sure nothing gets deleted from the online/remot…

---

## [Removing parts from a file](https://www.ruby-forum.com/t/removing-parts-from-a-file/50587)

<div class="topic-metadata">

**Author:** [@thomas](https://www.ruby-forum.com/u/thomas)\
**Replies:** 11\
**Last updated:** [December 19, 2005, 12:08pm UTC](https://www.ruby-forum.com/t/removing-parts-from-a-file/50587 "2005-12-19T12:08:01Z")

</div>

Hello, I’m relatively new to Ruby and I have a question: Is it possible to remove one or more lines from a file, without reading the whole file and writing it away again? This because I’ll have to do this with files …

---

## [Mouse library?](https://www.ruby-forum.com/t/mouse-library/71387)

<div class="topic-metadata">

**Author:** [@coca1na](https://www.ruby-forum.com/u/coca1na)\
**Replies:** 2\
**Last updated:** [December 19, 2005, 11:43am UTC](https://www.ruby-forum.com/t/mouse-library/71387 "2005-12-19T11:43:49Z")

</div>

hello all this is my first topic in this group i start with ruby a 15 days ago, i’m new in programing, but i already like ruby i’m trying to learn basic programs, like a program to press a key or a mouse click i wa…

---

## [Thread specific singleton's](https://www.ruby-forum.com/t/thread-specific-singletons/72211)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 2\
**Last updated:** [December 19, 2005, 10:04am UTC](https://www.ruby-forum.com/t/thread-specific-singletons/72211 "2005-12-19T10:04:37Z")

</div>

How do I make a thread specific Singleton? That is, once instance per thread. Related question: why do Singleton’s use the Name.instance.method idiom (using instance methods) as opposed to Name.method (using class me…

---

## [Better way to read data from IO into packets?](https://www.ruby-forum.com/t/better-way-to-read-data-from-io-into-packets/50577)

<div class="topic-metadata">

**Author:** [@Levin\_A](https://www.ruby-forum.com/u/Levin_A)\
**Replies:** 6\
**Last updated:** [December 19, 2005, 9:49am UTC](https://www.ruby-forum.com/t/better-way-to-read-data-from-io-into-packets/50577 "2005-12-19T09:49:33Z")

</div>

Hi, I have a small program, that reads data from a serial port and chops it into packets. A Packet has the following format: \[0x65, 0xEB, type:8, counter:8, length:8, data:length\>, crc:16\] I have a thread that read…

---

## [Newbie: require 'filename' - undefined local variable or me](https://www.ruby-forum.com/t/newbie-require-filename-undefined-local-variable-or-me/50595)

<div class="topic-metadata">

**Author:** [@grehom](https://www.ruby-forum.com/u/grehom)\
**Replies:** 13\
**Last updated:** [December 19, 2005, 9:13am UTC](https://www.ruby-forum.com/t/newbie-require-filename-undefined-local-variable-or-me/50595 "2005-12-19T09:13:29Z")

</div>

I have one line of code in a file called ‘stuff.rb’: myhash = { “a” =\> “ay”, “b” =\> “bee”, “c” =\> “sea” } and I wish to include it in another program called ‘mainprog.rb’ thus: require 'stuff' puts " a = " + myhash…

---

## [Reminder: Phoenix.rb Meeting Monday, Dec 19](https://www.ruby-forum.com/t/reminder-phoenix-rb-meeting-monday-dec-19/50550)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 5\
**Last updated:** [December 19, 2005, 5:54am UTC](https://www.ruby-forum.com/t/reminder-phoenix-rb-meeting-monday-dec-19/50550 "2005-12-19T05:54:10Z")

</div>

Just a reminder that the Phoenix Ruby U. Group is meeting this coming Monday evening, Dec 19 2005. Details are up on the Refresh Phoenix wiki James B. – http://www.ruby-doc.org - Ruby Help & Documentation R…

---

## [Help with fcgi installation](https://www.ruby-forum.com/t/help-with-fcgi-installation/50353)

<div class="topic-metadata">

**Author:** [@Francis\_V](https://www.ruby-forum.com/u/Francis_V)\
**Replies:** 4\
**Last updated:** [December 19, 2005, 4:42am UTC](https://www.ruby-forum.com/t/help-with-fcgi-installation/50353 "2005-12-19T04:42:05Z")

</div>

Hi, I’m trying to install fcgi-0.8.6 on Mac OS X but I keep getting this error: install.rb: entering config phase… —\> lib \<— lib —\> ext —\> ext/fcgi /usr/bin/ruby /usr/local/src/ruby-fcgi-0.8.6/ext/fcgi/extconf.rb …

---

## [Undefined method](https://www.ruby-forum.com/t/undefined-method/50198)

<div class="topic-metadata">

**Author:** [@Mark\_Liang](https://www.ruby-forum.com/u/Mark_Liang)\
**Replies:** 5\
**Last updated:** [December 19, 2005, 1:56am UTC](https://www.ruby-forum.com/t/undefined-method/50198 "2005-12-19T01:56:53Z")

</div>

I’ve recently started learning Ruby, I cannot seem to locate the cause of this error. Please pardon me if the answer is more straightforward as it seems. I’ve double-checked, blkcheck method works fine. I suspect the …

---

## [Unescaped text in REXML](https://www.ruby-forum.com/t/unescaped-text-in-rexml/50598)

<div class="topic-metadata">

**Author:** [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Replies:** 4\
**Last updated:** [December 18, 2005, 11:20pm UTC](https://www.ruby-forum.com/t/unescaped-text-in-rexml/50598 "2005-12-18T23:20:38Z")

</div>

Hi Rubyists, I’m writing a small app that will be generating HTML programatically using REXML. Part of the HTML that will be generated is a tag with some JavaScript in it. However the JavaScript is full of character…

---

## [End matching](https://www.ruby-forum.com/t/end-matching/70055)

<div class="topic-metadata">

**Author:** [@spiz](https://www.ruby-forum.com/u/spiz)\
**Replies:** 13\
**Last updated:** [December 18, 2005, 11:20pm UTC](https://www.ruby-forum.com/t/end-matching/70055 "2005-12-18T23:20:33Z")

</div>

Hi all, That’s it, THAT’S IT! I’m tired of forgetting an end or inserting one too many, and traipsing through the whole program to find it. Vim doesn’t really match End statements with their keywords. So I’m going to…

---

## [Passing multiple parameters with select-option to controller](https://www.ruby-forum.com/t/passing-multiple-parameters-with-select-option-to-controller/71120)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [December 18, 2005, 11:20pm UTC](https://www.ruby-forum.com/t/passing-multiple-parameters-with-select-option-to-controller/71120 "2005-12-18T23:20:30Z")

</div>

Hi all, I’m using Windows Xp, Mysql 5, Webrick, Rails 1.0 I’ve 3 tables which have HABTM relationship. My tables names are all set to uncountble. Name of tabels are anabilimdali (includes department info id name etc.…

---

## [Who develops ruby](https://www.ruby-forum.com/t/who-develops-ruby/50584)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 18, 2005, 11:20pm UTC](https://www.ruby-forum.com/t/who-develops-ruby/50584 "2005-12-18T23:20:28Z")

</div>

Where can people get involved in following ruby’s development, and/or contribute patches. There are no links from the ruby homepage, and the only mailing list, ruby-dev, is all japanese: http://ruby-talk.org/ruby/rub…

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

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