# Ruby

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

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

---

## [Syntax error when defining index setter \[\]=](https://www.ruby-forum.com/t/syntax-error-when-defining-index-setter/48767)

<div class="topic-metadata">

**Author:** [@jchris](https://www.ruby-forum.com/u/jchris)\
**Replies:** 7\
**Last updated:** [November 25, 2005, 8:41am UTC](https://www.ruby-forum.com/t/syntax-error-when-defining-index-setter/48767 "2005-11-25T08:41:57Z")

</div>

Hi, I’m trying to write some convenience methods for one of my classes. My class has an array of objects, each of which points to another object that I am interested in. (I’m describing an Active Record has\_many rela…

---

## [PLATFORM tests](https://www.ruby-forum.com/t/platform-tests/97945)

<div class="topic-metadata">

**Author:** [@eule](https://www.ruby-forum.com/u/eule)\
**Replies:** 13\
**Last updated:** [November 25, 2005, 4:00am UTC](https://www.ruby-forum.com/t/platform-tests/97945 "2005-11-25T04:00:06Z")

</div>

Dear list, A common Ruby idiom seems to be something like if PLATFORM =~ /mswin32/ # do windows stuff end Variations include matching for /mswin/. Neither of those works on the mingw32 PLATFORM (i386-mingw32). As …

---

## [Ruby/rails where is the obj session?](https://www.ruby-forum.com/t/ruby-rails-where-is-the-obj-session/48799)

<div class="topic-metadata">

**Author:** [@sayoyo](https://www.ruby-forum.com/u/sayoyo)\
**Replies:** 1\
**Last updated:** [November 25, 2005, 3:31am UTC](https://www.ruby-forum.com/t/ruby-rails-where-is-the-obj-session/48799 "2005-11-25T03:31:54Z")

</div>

Hi, Does any one knows where the object “session” in rails is stored? Is it on the server side or client side? and will it sends to the client (or send to the server) each time a request is sent? Thanks you very much …

---

## [From where can I download SOAP for Ruby?](https://www.ruby-forum.com/t/from-where-can-i-download-soap-for-ruby/65659)

<div class="topic-metadata">

**Author:** [@wikied](https://www.ruby-forum.com/u/wikied)\
**Replies:** 2\
**Last updated:** [November 25, 2005, 1:31am UTC](https://www.ruby-forum.com/t/from-where-can-i-download-soap-for-ruby/65659 "2005-11-25T01:31:07Z")

</div>

Thanks.

---

## [Re: Fixnum \<=\>](https://www.ruby-forum.com/t/re-fixnum/102073)

<div class="topic-metadata">

**Author:** [@vnainar](https://www.ruby-forum.com/u/vnainar)\
**Replies:** 4\
**Last updated:** [November 25, 2005, 12:58am UTC](https://www.ruby-forum.com/t/re-fixnum/102073 "2005-11-25T00:58:56Z")

</div>

I may be missing something obvious . Why is the ‘\<=\>’ operator not called when there is no block supplied to sort ?.The Pickaxe book says ( apropos Array.sort ): " Comparisons for the sort will be done using the \<=\>…

---

## [Rails: Will controller obj be created (re-created) each tim](https://www.ruby-forum.com/t/rails-will-controller-obj-be-created-re-created-each-tim/50074)

<div class="topic-metadata">

**Author:** [@sayoyo](https://www.ruby-forum.com/u/sayoyo)\
**Replies:** 1\
**Last updated:** [November 25, 2005, 12:42am UTC](https://www.ruby-forum.com/t/rails-will-controller-obj-be-created-re-created-each-tim/50074 "2005-11-25T00:42:50Z")

</div>

Hi, Does someone know if the controller obj is created (re-created) each time an action is called? or the controller is stored somewhere on the server? thanks you vey much Sayoyo

---

## [Mac OS X TK](https://www.ruby-forum.com/t/mac-os-x-tk/65658)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [November 24, 2005, 10:25pm UTC](https://www.ruby-forum.com/t/mac-os-x-tk/65658 "2005-11-24T22:25:42Z")

</div>

Is it possible to get a pure aqua TK running through Ruby on Mac OS X? Can anyone point me to the steps? James Edward G. II

---

## [PLEAC-Ruby](https://www.ruby-forum.com/t/pleac-ruby/100918)

<div class="topic-metadata">

**Author:** [@gregory.t.brown](https://www.ruby-forum.com/u/gregory.t.brown)\
**Replies:** 5\
**Last updated:** [November 24, 2005, 9:29pm UTC](https://www.ruby-forum.com/t/pleac-ruby/100918 "2005-11-24T21:29:15Z")

</div>

Has anyone seen this before? It’s a project that aims to implement the Perl cookbook solutions in Ruby. http://pleac.sourceforge.net/pleac\_ruby/ It has a lot of really good ideas in it, but it’s kind of hit or miss …

---

## [Pickaxe tutorial section missing info on writing to files](https://www.ruby-forum.com/t/pickaxe-tutorial-section-missing-info-on-writing-to-files/48759)

<div class="topic-metadata">

**Author:** [@Greg\_Gibson](https://www.ruby-forum.com/u/Greg_Gibson)\
**Replies:** 11\
**Last updated:** [November 24, 2005, 8:40pm UTC](https://www.ruby-forum.com/t/pickaxe-tutorial-section-missing-info-on-writing-to-files/48759 "2005-11-24T20:40:42Z")

</div>

The Pickaxe seems to be missing an example (or two) about how to write a file in Ruby (pgs 23 and 131) so I used the PLEAC. I have now been forbidden, by my friend, Greg Brown, from learning Ruby using Perl conventio…

---

## [Re: Equvialent of RoboCode and/or Terrarium for Ruby?](https://www.ruby-forum.com/t/re-equvialent-of-robocode-and-or-terrarium-for-ruby/47797)

<div class="topic-metadata">

**Author:** [@daniels](https://www.ruby-forum.com/u/daniels)\
**Replies:** 16\
**Last updated:** [November 24, 2005, 8:28pm UTC](https://www.ruby-forum.com/t/re-equvialent-of-robocode-and-or-terrarium-for-ruby/47797 "2005-11-24T20:28:36Z")

</div>

Would be nice to have a server to which different renderers could connect, that way we could have international battles with alot of spectators, does robocode allow this ? Using drb/tcp makes sense if we’d like peopl…

---

## [New beta of Komodo 3.5 includes Ruby interactive shell](https://www.ruby-forum.com/t/new-beta-of-komodo-3-5-includes-ruby-interactive-shell/48789)

<div class="topic-metadata">

**Author:** [@eric.promislow](https://www.ruby-forum.com/u/eric.promislow)\
**Replies:** 0\
**Last updated:** [November 24, 2005, 7:28pm UTC](https://www.ruby-forum.com/t/new-beta-of-komodo-3-5-includes-ruby-interactive-shell/48789 "2005-11-24T19:28:10Z")

</div>

The Ruby interactive shell is finally available for Komodo, like the subject says. Here are the details on getting a download, courtesy of JeffG. Eric Hello everyone, We’re closing in on the release Komodo 3.5.1 f…

---

## [Legal symbol names and generics](https://www.ruby-forum.com/t/legal-symbol-names-and-generics/48785)

<div class="topic-metadata">

**Author:** [@drjflam](https://www.ruby-forum.com/u/drjflam)\
**Replies:** 15\
**Last updated:** [November 24, 2005, 6:55pm UTC](https://www.ruby-forum.com/t/legal-symbol-names-and-generics/48785 "2005-11-24T18:55:52Z")

</div>

I’ve just started thinking about generics in my Ruby \<=\> CLR bridge. This is what I’d love to be able to do: channel = ChannelFactory(" http://www.flickr.com/services/soap/").CreateChannel The problem is how to deal…

---

## [Parsing excel CVS data on a mac OSX to extract blocks of cel](https://www.ruby-forum.com/t/parsing-excel-cvs-data-on-a-mac-osx-to-extract-blocks-of-cel/48474)

<div class="topic-metadata">

**Author:** [@anne](https://www.ruby-forum.com/u/anne)\
**Replies:** 12\
**Last updated:** [November 24, 2005, 6:43pm UTC](https://www.ruby-forum.com/t/parsing-excel-cvs-data-on-a-mac-osx-to-extract-blocks-of-cel/48474 "2005-11-24T18:43:46Z")

</div>

I would like to parse some excel CVS data which has a repetitive block pattern “Experiment ID: 1”, "Subject ID: 1013938829432171e868c340. Trial,stimulus,time,type,field1,field2,text\_response,Abs. time of response, …

---

## [Euchre Hands (#55)](https://www.ruby-forum.com/t/euchre-hands-55/102075)

<div class="topic-metadata">

**Author:** [@james](https://www.ruby-forum.com/u/james)\
**Replies:** 2\
**Last updated:** [November 24, 2005, 5:01pm UTC](https://www.ruby-forum.com/t/euchre-hands-55/102075 "2005-11-24T17:01:26Z")

</div>

My wife can’t stand how Euchre reorders the suits. “Everyone know Jacks come after Tens,” she would say. Funny how most of us except the odd Ace concept where the low card is frequently the high card, or even both.…

---

## [TN3270E library for Ruby?](https://www.ruby-forum.com/t/tn3270e-library-for-ruby/48733)

<div class="topic-metadata">

**Author:** [@wilsonb](https://www.ruby-forum.com/u/wilsonb)\
**Replies:** 2\
**Last updated:** [November 24, 2005, 4:38pm UTC](https://www.ruby-forum.com/t/tn3270e-library-for-ruby/48733 "2005-11-24T16:38:28Z")

</div>

Has anyone done anything with the 3270 protocol in Ruby? I write a lot of code that needs connectivity to IBM mainframe hosts via TN3270E. At the moment, I do that by ‘wiring up’ a terminal emulator and telling it to…

---

## [Ruby error messages](https://www.ruby-forum.com/t/ruby-error-messages/48765)

<div class="topic-metadata">

**Author:** [@sam](https://www.ruby-forum.com/u/sam)\
**Replies:** 5\
**Last updated:** [November 24, 2005, 1:08pm UTC](https://www.ruby-forum.com/t/ruby-error-messages/48765 "2005-11-24T13:08:08Z")

</div>

Hi there, Is the meaning of the ruby error messages defined anywhere? E.g. I get something like: NameError: uninitialized constant Blah and maybe you’ll tell me it’s self explanatory, but it would be nice to look th…

---

## [Ruby-feedparser 0.1](https://www.ruby-forum.com/t/ruby-feedparser-0-1/48770)

<div class="topic-metadata">

**Author:** [@lucas](https://www.ruby-forum.com/u/lucas)\
**Replies:** 0\
**Last updated:** [November 24, 2005, 12:43pm UTC](https://www.ruby-forum.com/t/ruby-feedparser-0-1/48770 "2005-11-24T12:43:55Z")

</div>

Hi, Ruby-feedparser 0.1 has been released. Ruby-Feedparser is an RSS and Atom parser for Ruby. It was initially developed for Feed2Imap, but it is now a standalone library. Ruby-feedparser is : \* based on REXML \* bu…

---

## [How to modify Hash to track key insertions?](https://www.ruby-forum.com/t/how-to-modify-hash-to-track-key-insertions/48718)

<div class="topic-metadata">

**Author:** [@jgbailey](https://www.ruby-forum.com/u/jgbailey)\
**Replies:** 2\
**Last updated:** [November 24, 2005, 9:30am UTC](https://www.ruby-forum.com/t/how-to-modify-hash-to-track-key-insertions/48718 "2005-11-24T09:30:19Z")

</div>

I am trying to figure out how I can modify the Hash object so that I am notified each time a key is inserted in a Hash when it is constructed using the syntax below: a = { “x” =\> “1”, “y” =\> “2” } I’ve tried overridi…

---

## [A question about metaclass](https://www.ruby-forum.com/t/a-question-about-metaclass/48745)

<div class="topic-metadata">

**Author:** [@sam.s.kong](https://www.ruby-forum.com/u/sam.s.kong)\
**Replies:** 2\
**Last updated:** [November 24, 2005, 9:25am UTC](https://www.ruby-forum.com/t/a-question-about-metaclass/48745 "2005-11-24T09:25:53Z")

</div>

Hi! Some code first… class C end obj = C.new #\<-- Question here. My question is where the C.new method is. The class Class or C’s singleton class? According to PickAxe2, it seems that C.new is in Class. However,…

---

## [Syntax error warning: useless use of a variable in void cont](https://www.ruby-forum.com/t/syntax-error-warning-useless-use-of-a-variable-in-void-cont/48727)

<div class="topic-metadata">

**Author:** [@w3gat](https://www.ruby-forum.com/u/w3gat)\
**Replies:** 5\
**Last updated:** [November 24, 2005, 5:08am UTC](https://www.ruby-forum.com/t/syntax-error-warning-useless-use-of-a-variable-in-void-cont/48727 "2005-11-24T05:08:34Z")

</div>

class Tl def initialize(a,b) @a = a @b = b end def to\_s "#{@a} #{@b}" end def \<=\>(tlr) if @a \> tlr.@a 1 elsif @a == tlr.@a 0 else -1 end end end aa = Tl.…

---

## [Re: A question about metaclass](https://www.ruby-forum.com/t/re-a-question-about-metaclass/101395)

<div class="topic-metadata">

**Author:** [@daniels](https://www.ruby-forum.com/u/daniels)\
**Replies:** 0\
**Last updated:** [November 24, 2005, 4:04am UTC](https://www.ruby-forum.com/t/re-a-question-about-metaclass/101395 "2005-11-24T04:04:11Z")

</div>

That’s what I meant def C.new puts “Here” super end doofus = self ##################################################################################### This email has been scanned by MailMarshal, an email conten…

---

## [Re: A question about metaclass](https://www.ruby-forum.com/t/re-a-question-about-metaclass/49940)

<div class="topic-metadata">

**Author:** [@daniels](https://www.ruby-forum.com/u/daniels)\
**Replies:** 1\
**Last updated:** [November 24, 2005, 3:56am UTC](https://www.ruby-forum.com/t/re-a-question-about-metaclass/49940 "2005-11-24T03:56:09Z")

</div>

My question is where the C.new method is. The class Class or C’s singleton class? According to PickAxe2, it seems that C.new is in Class. However, according to Little Ruby book, it seems that C.new is in C’s metacla…

---

## [Is there a Rails-like project out that just makes writing so](https://www.ruby-forum.com/t/is-there-a-rails-like-project-out-that-just-makes-writing-so/48734)

<div class="topic-metadata">

**Author:** [@AvandenHoven](https://www.ruby-forum.com/u/AvandenHoven)\
**Replies:** 4\
**Last updated:** [November 24, 2005, 2:51am UTC](https://www.ruby-forum.com/t/is-there-a-rails-like-project-out-that-just-makes-writing-so/48734 "2005-11-24T02:51:42Z")

</div>

Hey guys, It struck me the other day that one of the nicest things about Rails is that it knows a lot of things so I don’t have to. For instance, when i want to create a new Rails project I just type “rails path/to/ …

---

## [Re: How convert an integer to a bit array](https://www.ruby-forum.com/t/re-how-convert-an-integer-to-a-bit-array/53008)

<div class="topic-metadata">

**Author:** [@daniels](https://www.ruby-forum.com/u/daniels)\
**Replies:** 1\
**Last updated:** [November 24, 2005, 12:30am UTC](https://www.ruby-forum.com/t/re-how-convert-an-integer-to-a-bit-array/53008 "2005-11-24T00:30:51Z")

</div>

bits = Array.new(8) { |i| 7\[i\] }.reverse! This code will call: Integer#\[\] 8 times Array.new once Array.reverse! once def to\_ba(num, size=8) (-size+1…0).inject({}) {|x,i| x \<\< num\[-i\]} end This code will c…

---

## [Buncha logging stuff showing up in unit tests](https://www.ruby-forum.com/t/buncha-logging-stuff-showing-up-in-unit-tests/49865)

<div class="topic-metadata">

**Author:** [@joevandyk](https://www.ruby-forum.com/u/joevandyk)\
**Replies:** 5\
**Last updated:** [November 24, 2005, 12:22am UTC](https://www.ruby-forum.com/t/buncha-logging-stuff-showing-up-in-unit-tests/49865 "2005-11-24T00:22:46Z")

</div>

I’m using Ruby’s standard Logger to log a bunch of debug, info, and errors. But when I run the unit tests for the classes that use the Logger, all the logs are showing up in the test output. Any good solutions for so…

---

## [Re: string range membership](https://www.ruby-forum.com/t/re-string-range-membership/48739)

<div class="topic-metadata">

**Author:** [@daniels](https://www.ruby-forum.com/u/daniels)\
**Replies:** 0\
**Last updated:** [November 23, 2005, 11:54pm UTC](https://www.ruby-forum.com/t/re-string-range-membership/48739 "2005-11-23T23:54:37Z")

</div>

ruby -e “p (‘1’…‘10’).find {|x| x == ‘2’}” “2” It wont be as fast as Range#include, but you can’t put the equivalent into Range without giving it knowledge about how String#succ works. ###############################…

---

## [Unsubscribing for a while](https://www.ruby-forum.com/t/unsubscribing-for-a-while/48730)

<div class="topic-metadata">

**Author:** [@christophe.grandsir](https://www.ruby-forum.com/u/christophe.grandsir)\
**Replies:** 1\
**Last updated:** [November 23, 2005, 10:13pm UTC](https://www.ruby-forum.com/t/unsubscribing-for-a-while/48730 "2005-11-23T22:13:43Z")

</div>

Hi everyone, Due to imminent moving to another region and loss of Internet connection for at least a week, I am going to unsubscribe temporarily. I am thus using this occasion to thank you all for being such a warm an…

---

## [How does this work?](https://www.ruby-forum.com/t/how-does-this-work/48703)

<div class="topic-metadata">

**Author:** [@gandalfmeister](https://www.ruby-forum.com/u/gandalfmeister)\
**Replies:** 3\
**Last updated:** [November 23, 2005, 9:33pm UTC](https://www.ruby-forum.com/t/how-does-this-work/48703 "2005-11-23T21:33:25Z")

</div>

I cam across a construct in the FXRuby examples which I’ve not seen before… … lots of constants…(about 47 in total I believe) ID\_INSERT\_FILE, ID\_EXTRACT\_FILE, ID\_WHEELADJUST, ID\_LAST = enum(FXMainWindow::ID\_LAST, 4…

---

## [Continuations](https://www.ruby-forum.com/t/continuations/100757)

<div class="topic-metadata">

**Author:** [@anders.janmyr](https://www.ruby-forum.com/u/anders.janmyr)\
**Replies:** 4\
**Last updated:** [November 23, 2005, 9:13pm UTC](https://www.ruby-forum.com/t/continuations/100757 "2005-11-23T21:13:14Z")

</div>

Hello Everyone, I am trying to come to terms with continuations and I am failing miserably. I have a method “traverse” which basically is a traversal algorithm for a sudoko game. To learn more about continuations I …

---

## [Re: string range membership](https://www.ruby-forum.com/t/re-string-range-membership/100717)

<div class="topic-metadata">

**Author:** [@warrenbrown](https://www.ruby-forum.com/u/warrenbrown)\
**Replies:** 2\
**Last updated:** [November 23, 2005, 9:08pm UTC](https://www.ruby-forum.com/t/re-string-range-membership/100717 "2005-11-23T21:08:52Z")

</div>

T, This was discussed sometime ago. The solution (mostly arrived at by Peter V.) is to use a different comparision method. I can't find this discussion in the archive. Can you give me a link or a message number? …

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

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