# Ruby

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

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

---

## [Migrate CVS Ruby Source to Subversion (SVN)?](https://www.ruby-forum.com/t/migrate-cvs-ruby-source-to-subversion-svn/80843)

<div class="topic-metadata">

**Author:** [@coldtone](https://www.ruby-forum.com/u/coldtone)\
**Replies:** 1\
**Last updated:** [December 31, 2006, 12:56am UTC](https://www.ruby-forum.com/t/migrate-cvs-ruby-source-to-subversion-svn/80843 "2006-12-31T00:56:55Z")

</div>

Has any initiative been taken to help move the ruby CVS source tree to Subversion? If not, what are the pros and cons of undertaking such a step? I’ll admit I’ve left CVS like a bad, old high school girlfriend and re…

---

## [Pickaxe book questions: Symbols and \[\] method](https://www.ruby-forum.com/t/pickaxe-book-questions-symbols-and-method/80624)

<div class="topic-metadata">

**Author:** [@Krekna\_M](https://www.ruby-forum.com/u/Krekna_M)\
**Replies:** 4\
**Last updated:** [December 31, 2006, 12:40am UTC](https://www.ruby-forum.com/t/pickaxe-book-questions-symbols-and-method/80624 "2006-12-31T00:40:44Z")

</div>

Hi list, I’ve got this probably lame questions. In the Pickaxe book 2nd ed. they talk about the attr\_reader and attr\_writer on pages 28 and 29 of the book. There are these attr\_reader (eh, methods?) things, which use …

---

## [How to use a variable reference another variable?](https://www.ruby-forum.com/t/how-to-use-a-variable-reference-another-variable/80740)

<div class="topic-metadata">

**Author:** [@yuesefa](https://www.ruby-forum.com/u/yuesefa)\
**Replies:** 3\
**Last updated:** [December 30, 2006, 10:31pm UTC](https://www.ruby-forum.com/t/how-to-use-a-variable-reference-another-variable/80740 "2006-12-30T22:31:21Z")

</div>

since variable names are not objects, is there any possible ways to do this? thank you!

---

## [Need help designing a pair of RMagick methods](https://www.ruby-forum.com/t/need-help-designing-a-pair-of-rmagick-methods/80743)

<div class="topic-metadata">

**Author:** [@tim-hunter](https://www.ruby-forum.com/u/tim-hunter)\
**Replies:** 0\
**Last updated:** [December 30, 2006, 9:00pm UTC](https://www.ruby-forum.com/t/need-help-designing-a-pair-of-rmagick-methods/80743 "2006-12-30T21:00:59Z")

</div>

I don’t get to write much “real-world” Ruby code so I thought I’d ask for help from the community. I’d like your advice about the design for the RMagick\[1\] bindings for a part of the ImageMagick API that I have never …

---

## [With and without Song#to\_s again](https://www.ruby-forum.com/t/with-and-without-song-to-s-again/80722)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 3\
**Last updated:** [December 30, 2006, 6:54pm UTC](https://www.ruby-forum.com/t/with-and-without-song-to-s-again/80722 "2006-12-30T18:54:37Z")

</div>

Hi all, I posted a similar question a short time ago. But I don’t think the replies help me understand the behaviors. So I post a short version( sorry if it bothers you again). I have the following script. I don’t c…

---

## [Re: Proposal to create a new mailing list](https://www.ruby-forum.com/t/re-proposal-to-create-a-new-mailing-list/80729)

<div class="topic-metadata">

**Author:** [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Replies:** 0\
**Last updated:** [December 30, 2006, 6:02pm UTC](https://www.ruby-forum.com/t/re-proposal-to-create-a-new-mailing-list/80729 "2006-12-30T18:02:26Z")

</div>

I hope that maybe someone can repair the unsub process while creating the new experts list. Although I have tried various methods to unsubbing without being blatantly disrespectful, I am unable to unsub. Take Care, D…

---

## [Geneva RUG anyone?](https://www.ruby-forum.com/t/geneva-rug-anyone/80728)

<div class="topic-metadata">

**Author:** [@zenzei](https://www.ruby-forum.com/u/zenzei)\
**Replies:** 0\
**Last updated:** [December 30, 2006, 5:50pm UTC](https://www.ruby-forum.com/t/geneva-rug-anyone/80728 "2006-12-30T17:50:22Z")

</div>

Hello, who would be interested in starting an informal Geneva (Switzerland) Ruby User Group ? Depending on the number of people it could start to be interesting. I’m also preparing a Ruby introduction lesson in 15mi…

---

## [Ruby Retrospective Post at Linux Journal](https://www.ruby-forum.com/t/ruby-retrospective-post-at-linux-journal/80719)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [December 30, 2006, 4:48pm UTC](https://www.ruby-forum.com/t/ruby-retrospective-post-at-linux-journal/80719 "2006-12-30T16:48:05Z")

</div>

I just posted a place to collect Ruby Retrospectives here: Ruby in 2006 -- A Retrospective Collection | Linux Journal If you’d like a link to your own retrospective, just drop me a link (either here or in the comments…

---

## [Auto TODO-LIST](https://www.ruby-forum.com/t/auto-todo-list/80684)

<div class="topic-metadata">

**Author:** [@Felipe\_N](https://www.ruby-forum.com/u/Felipe_N)\
**Replies:** 2\
**Last updated:** [December 30, 2006, 2:05pm UTC](https://www.ruby-forum.com/t/auto-todo-list/80684 "2006-12-30T14:05:50Z")

</div>

There is any script that run through the code and make a Todo list ? Rdoc can do this ?

---

## [TMail attachments](https://www.ruby-forum.com/t/tmail-attachments/80698)

<div class="topic-metadata">

**Author:** [@morten](https://www.ruby-forum.com/u/morten)\
**Replies:** 1\
**Last updated:** [December 30, 2006, 1:17pm UTC](https://www.ruby-forum.com/t/tmail-attachments/80698 "2006-12-30T13:17:46Z")

</div>

Hi, Anyone know where I can find any sort of documentation for TMail::Attachment? How do I access the actual content of an attachment (name, mime type, size, data)? Thanks. Morten

---

## [How to make a curly](https://www.ruby-forum.com/t/how-to-make-a-curly/80705)

<div class="topic-metadata">

**Author:** [@gretzky](https://www.ruby-forum.com/u/gretzky)\
**Replies:** 9\
**Last updated:** [December 30, 2006, 12:34pm UTC](https://www.ruby-forum.com/t/how-to-make-a-curly/80705 "2006-12-30T12:34:42Z")

</div>

Well I just started with ruby and in irb, i just cant fint the right combo to make the end curly bracket =\> } I need help! Thank you

---

## [Re: how to properly format data when using TCPSocket.send()](https://www.ruby-forum.com/t/re-how-to-properly-format-data-when-using-tcpsocket-send/80687)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 1\
**Last updated:** [December 30, 2006, 11:35am UTC](https://www.ruby-forum.com/t/re-how-to-properly-format-data-when-using-tcpsocket-send/80687 "2006-12-30T11:35:38Z")

</div>

Rob M. wrote: http\_socket = TCPSocket.new("#{i}", 80); http\_socket.send("PUT nc -l -k 3001 …will start your ‘server’. Then you set your client to connect to localhost 3001, you can use nc as a client to test that …

---

## [Rails install question](https://www.ruby-forum.com/t/rails-install-question/80655)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 6\
**Last updated:** [December 30, 2006, 7:47am UTC](https://www.ruby-forum.com/t/rails-install-question/80655 "2006-12-30T07:47:17Z")

</div>

I get this and I am wondering if it “hurts” anything: While generating documentation for activesupport-1.3.1 … MESSAGE: Unhandled special: Special: type=17, text="" … RDOC args: --ri --op /opt/local/lib/ruby/gems/1…

---

## [With and without Song#to\_s](https://www.ruby-forum.com/t/with-and-without-song-to-s/80699)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 2\
**Last updated:** [December 30, 2006, 6:53am UTC](https://www.ruby-forum.com/t/with-and-without-song-to-s/80699 "2006-12-30T06:53:11Z")

</div>

Happy holiday for all! I have two classes (most of them copied from Pickaxe 2)and they work fine. But I get the address for each object if I comment out method Song#to\_s. How to explain them? Thanks, Li class Song …

---

## [Exception naming conventions: rely on module name?](https://www.ruby-forum.com/t/exception-naming-conventions-rely-on-module-name/80662)

<div class="topic-metadata">

**Author:** [@efine](https://www.ruby-forum.com/u/efine)\
**Replies:** 2\
**Last updated:** [December 30, 2006, 5:00am UTC](https://www.ruby-forum.com/t/exception-naming-conventions-rely-on-module-name/80662 "2006-12-30T05:00:58Z")

</div>

I am wondering about design alternatives regarding exception naming in Ruby. Is there a naming convention for exceptions that are declared inside a module? For example, let’s say we have a module named MP3, and we wan…

---

## [With and without Song#to\_s](https://www.ruby-forum.com/t/with-and-without-song-to-s/102632)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 3\
**Last updated:** [December 30, 2006, 3:12am UTC](https://www.ruby-forum.com/t/with-and-without-song-to-s/102632 "2006-12-30T03:12:50Z")

</div>

Happy holiday for all! I have two classes (most of them copied from Pickaxe 2)and they work fine. But I get the address for each object if I comment out method Song#to\_s. How to explain them? Thanks, Li class Song …

---

## [Newbie: where is File documented?](https://www.ruby-forum.com/t/newbie-where-is-file-documented/80641)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [December 30, 2006, 2:56am UTC](https://www.ruby-forum.com/t/newbie-where-is-file-documented/80641 "2006-12-30T02:56:47Z")

</div>

Hello, I’m trying to work some examples (The Poignant Guide), I can’t seem to find any official docs on the File class, found this half-finished tutorial: http://pleac.sourceforge.net/pleac\_ruby/fileaccess.html Is…

---

## [Using an UnboundMethod instead of an alias to redefine a met](https://www.ruby-forum.com/t/using-an-unboundmethod-instead-of-an-alias-to-redefine-a-met/80480)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 15\
**Last updated:** [December 30, 2006, 2:56am UTC](https://www.ruby-forum.com/t/using-an-unboundmethod-instead-of-an-alias-to-redefine-a-met/80480 "2006-12-30T02:56:47Z")

</div>

Hi all, I came across a technique for aliasing methods that I have never seen before \[1\] and was just too good to pass up. But first, the setup. If you want to redefine a method of an existing class, the traditional …

---

## [Unsafe readline(), anything better?](https://www.ruby-forum.com/t/unsafe-readline-anything-better/80578)

<div class="topic-metadata">

**Author:** [@coldtone](https://www.ruby-forum.com/u/coldtone)\
**Replies:** 7\
**Last updated:** [December 30, 2006, 2:44am UTC](https://www.ruby-forum.com/t/unsafe-readline-anything-better/80578 "2006-12-30T02:44:46Z")

</div>

Looking for a combination of readpartial() and readline() in order to safely read a line of maxlen. IO.readline() appears to suffer from lacking this maximum allowing DOS against servers reading HTTP headers, for exa…

---

## [ActiveRecord::Extensions 0.3.0 released! (bugfix)](https://www.ruby-forum.com/t/activerecord-extensions-0-3-0-released-bugfix/80696)

<div class="topic-metadata">

**Author:** [@zdennis](https://www.ruby-forum.com/u/zdennis)\
**Replies:** 0\
**Last updated:** [December 30, 2006, 2:06am UTC](https://www.ruby-forum.com/t/activerecord-extensions-0-3-0-released-bugfix/80696 "2006-12-30T02:06:34Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ActiveRecord::Extensions 0.3.0 is Released! 0.3.0 is released! This includes a fix for a potential namespace issue and has minor updates to how the tests are run via the…

---

## [Re: ruby for SCO](https://www.ruby-forum.com/t/re-ruby-for-sco/80686)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 0\
**Last updated:** [December 29, 2006, 11:20pm UTC](https://www.ruby-forum.com/t/re-ruby-for-sco/80686 "2006-12-29T23:20:07Z")

</div>

Overdorf, Sam wrote: Does anybody have a copy of ruby-1.8.x that will run on: SCO6 Unixware 7 Thanks, Sam Have you tried to compile it from the source? Any problem with that? Just in case you do not know how to…

---

## [Ruby for SCO](https://www.ruby-forum.com/t/ruby-for-sco/80677)

<div class="topic-metadata">

**Author:** [@OverdorfS\_Sam](https://www.ruby-forum.com/u/OverdorfS_Sam)\
**Replies:** 0\
**Last updated:** [December 29, 2006, 9:27pm UTC](https://www.ruby-forum.com/t/ruby-for-sco/80677 "2006-12-29T21:27:45Z")

</div>

Does anybody have a copy of ruby-1.8.x that will run on: SCO6 Unixware 7 Thanks, Sam

---

## [Developpers on rails](https://www.ruby-forum.com/t/developpers-on-rails/80573)

<div class="topic-metadata">

**Author:** [@cypherstrong](https://www.ruby-forum.com/u/cypherstrong)\
**Replies:** 4\
**Last updated:** [December 29, 2006, 8:55pm UTC](https://www.ruby-forum.com/t/developpers-on-rails/80573 "2006-12-29T20:55:39Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I want to know if for ruby like over language (php for example), if developper on ruby are a lot (more specially french developpers) In fact, it’s for a new project, …

---

## [WEBrick DOS Security Flaw](https://www.ruby-forum.com/t/webrick-dos-security-flaw/80637)

<div class="topic-metadata">

**Author:** [@coldtone](https://www.ruby-forum.com/u/coldtone)\
**Replies:** 1\
**Last updated:** [December 29, 2006, 8:31pm UTC](https://www.ruby-forum.com/t/webrick-dos-security-flaw/80637 "2006-12-29T20:31:32Z")

</div>

Looks like WEBrick isn’t ready for production, but then I think most only use it with rails development, if not you may reconsider using in any production capacity until this flaw is addressed. http://rob.muhlestein.n…

---

## [Rcodetools 0.4.0: TDD++, automagic assertions, 100% accurate](https://www.ruby-forum.com/t/rcodetools-0-4-0-tdd-automagic-assertions-100-accurate/80672)

<div class="topic-metadata">

**Author:** [@tulkas](https://www.ruby-forum.com/u/tulkas)\
**Replies:** 0\
**Last updated:** [December 29, 2006, 8:25pm UTC](https://www.ruby-forum.com/t/rcodetools-0-4-0-tdd-automagic-assertions-100-accurate/80672 "2006-12-29T20:25:29Z")

</div>

rcodetools is a collection of Ruby code manipulation tools. It includes xmpfilter and editor-independent Ruby development helper tools, as well as emacs and vim interfaces. Currently, rcodetools comprises: xmpfilte…

---

## [Need help with a timing? problem](https://www.ruby-forum.com/t/need-help-with-a-timing-problem/80635)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [December 29, 2006, 7:15pm UTC](https://www.ruby-forum.com/t/need-help-with-a-timing-problem/80635 "2006-12-29T19:15:19Z")

</div>

I am running Ruby 1.8.5 and windows XP. I am working on a program that monitors a directory and updates and updates a database based on the changes. At the moment I have some code to handle files that are added. Basic…

---

## [Ruby-full debian package](https://www.ruby-forum.com/t/ruby-full-debian-package/80250)

<div class="topic-metadata">

**Author:** [@gnuvince](https://www.ruby-forum.com/u/gnuvince)\
**Replies:** 8\
**Last updated:** [December 29, 2006, 7:11pm UTC](https://www.ruby-forum.com/t/ruby-full-debian-package/80250 "2006-12-29T19:11:16Z")

</div>

Hello, Following last night’s discussions, I’ve created a ruby-full debian package. It won’t make it to etch before a while, if it ever does, but you can try it out in my personal repository, see http://vincent.fourm…

---

## [Cleare errors on a given attribute](https://www.ruby-forum.com/t/cleare-errors-on-a-given-attribute/80657)

<div class="topic-metadata">

**Author:** [@fedot](https://www.ruby-forum.com/u/fedot)\
**Replies:** 1\
**Last updated:** [December 29, 2006, 6:09pm UTC](https://www.ruby-forum.com/t/cleare-errors-on-a-given-attribute/80657 "2006-12-29T18:09:09Z")

</div>

I’ve been studying Rails source code to figure out how to clear ActiveRecord errors for a given attribute name. It appears that there is no direct API to do that. The best workaround I found is this: active\_record.err…

---

## [Another Q: find behavior](https://www.ruby-forum.com/t/another-q-find-behavior/80648)

<div class="topic-metadata">

**Author:** [@Krekna\_M](https://www.ruby-forum.com/u/Krekna_M)\
**Replies:** 4\
**Last updated:** [December 29, 2006, 6:00pm UTC](https://www.ruby-forum.com/t/another-q-find-behavior/80648 "2006-12-29T18:00:54Z")

</div>

Hi, Still learning from the Pickaxe book, and I’ve got a question about this code: class Array def find for i in 0…size value = self\[i\] puts self\[i\] return value if yield(value) end return nil end end \[1,3,5…

---

## [Re: What we have here is a retard pretending to be a compute](https://www.ruby-forum.com/t/re-what-we-have-here-is-a-retard-pretending-to-be-a-compute/80598)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 4\
**Last updated:** [December 29, 2006, 5:32pm UTC](https://www.ruby-forum.com/t/re-what-we-have-here-is-a-retard-pretending-to-be-a-compute/80598 "2006-12-29T17:32:47Z")

</div>

removed\_email\_address@domain.invalid wrote: http://www.iam.unibe.ch/~scg/Archive/Papers/Scha04bOOEncapsulation.pdf . this retard thinks Smalltalk and Ruby don’t have private public and what not. what a joke. This is …

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

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