# Ruby

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

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

---

## [Re : One-Click Ruby Installer 1.8.5-23 released](https://www.ruby-forum.com/t/re-one-click-ruby-installer-1-8-5-23-released/85971)

<div class="topic-metadata">

**Author:** [@rubarachni](https://www.ruby-forum.com/u/rubarachni)\
**Replies:** 12\
**Last updated:** [February 18, 2007, 11:27pm UTC](https://www.ruby-forum.com/t/re-one-click-ruby-installer-1-8-5-23-released/85971 "2007-02-18T23:27:23Z")

</div>

Curt, The tab completion still doesn’t work within IRB and the SciTE version is still the old 1.67. CM.

---

## [Cgi::session](https://www.ruby-forum.com/t/cgi-session/100503)

<div class="topic-metadata">

**Author:** [@tma](https://www.ruby-forum.com/u/tma)\
**Replies:** 1\
**Last updated:** [February 18, 2007, 9:52pm UTC](https://www.ruby-forum.com/t/cgi-session/100503 "2007-02-18T21:52:48Z")

</div>

how are you supposed to delete the session data from the server? I made the assumption that session.delete would do this, but it’s not removing the files. Any practices out there anyone care to share?

---

## [Add custom rules to redcloth/textile how?](https://www.ruby-forum.com/t/add-custom-rules-to-redcloth-textile-how/85957)

<div class="topic-metadata">

**Author:** [@ingoweiss](https://www.ruby-forum.com/u/ingoweiss)\
**Replies:** 6\
**Last updated:** [February 18, 2007, 8:00pm UTC](https://www.ruby-forum.com/t/add-custom-rules-to-redcloth-textile-how/85957 "2007-02-18T20:00:01Z")

</div>

Hi, has anybody successfully added custom inline tag rules to RedCloth/textile? Thanks! Ingo

---

## [Modulus/division](https://www.ruby-forum.com/t/modulus-division/85958)

<div class="topic-metadata">

**Author:** [@derekteixeira](https://www.ruby-forum.com/u/derekteixeira)\
**Replies:** 9\
**Last updated:** [February 18, 2007, 7:38pm UTC](https://www.ruby-forum.com/t/modulus-division/85958 "2007-02-18T19:38:03Z")

</div>

hey guys, i am reading that “learning to program” by Chris P. still and at the end of each lesson they give you a “give this a try” thing for you practice what you’ve learned… Anyway, at the end of Chapter 9 they give…

---

## [Oppinions on RCR for dup on immutable classes](https://www.ruby-forum.com/t/oppinions-on-rcr-for-dup-on-immutable-classes/85746)

<div class="topic-metadata">

**Author:** [@apeiros](https://www.ruby-forum.com/u/apeiros)\
**Replies:** 74\
**Last updated:** [February 18, 2007, 7:10pm UTC](https://www.ruby-forum.com/t/oppinions-on-rcr-for-dup-on-immutable-classes/85746 "2007-02-18T19:10:58Z")

</div>

I’m about to make this RCR and would like to get some oppinions on it in order to make my decision. The questions are: Should I split this RCR up for a) and b)? Should I only submit a single one, if so, which one? Sh…

---

## [RubyScript2EXE Not Functioning](https://www.ruby-forum.com/t/rubyscript2exe-not-functioning/84706)

<div class="topic-metadata">

**Author:** [@r-a-mueller](https://www.ruby-forum.com/u/r-a-mueller)\
**Replies:** 13\
**Last updated:** [February 18, 2007, 5:50pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-not-functioning/84706 "2007-02-18T17:50:50Z")

</div>

I’ve just downloaded Erik V.'s RubyScript2EXE, but it does not seem to work correctly at all. Here’s what I’ve done: I downloaded the latest rubyscript2exe.rb to my working folder, with the .RB to be packaged (in th…

---

## [Ruby gnome2 - stuck with combo box](https://www.ruby-forum.com/t/ruby-gnome2-stuck-with-combo-box/85977)

<div class="topic-metadata">

**Author:** [@prhlava](https://www.ruby-forum.com/u/prhlava)\
**Replies:** 2\
**Last updated:** [February 18, 2007, 5:45pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-stuck-with-combo-box/85977 "2007-02-18T17:45:49Z")

</div>

hello, i am trying to create a combo box where drop-down bit is a list-store with two columns. the following code does not work: @title = Gtk::ComboBox.new(false) renderer = Gtk::CellRendererText.new() @title.append…

---

## [Instance variable exists?](https://www.ruby-forum.com/t/instance-variable-exists/85975)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 7\
**Last updated:** [February 18, 2007, 5:04pm UTC](https://www.ruby-forum.com/t/instance-variable-exists/85975 "2007-02-18T17:04:43Z")

</div>

Hi, what is the preferred way to see if an object already includes a instance variable? for now i do something like: @my\_object.instance\_variables.include? “var\_name” Cheers detlef

---

## [How to change type of Quote from ' to " in Rexml?](https://www.ruby-forum.com/t/how-to-change-type-of-quote-from-to-in-rexml/83760)

<div class="topic-metadata">

**Author:** [@wonado](https://www.ruby-forum.com/u/wonado)\
**Replies:** 2\
**Last updated:** [February 18, 2007, 4:50pm UTC](https://www.ruby-forum.com/t/how-to-change-type-of-quote-from-to-in-rexml/83760 "2007-02-18T16:50:42Z")

</div>

Hi! We have a question in german Ruby forum for which I can’t find an answer. How to change the type of quote in “Rexml”, that instead of (for example) an alternative form will be used: Wolfgang Nádasi-Donn…

---

## [Help with customising the IRB prompt](https://www.ruby-forum.com/t/help-with-customising-the-irb-prompt/85933)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 3\
**Last updated:** [February 18, 2007, 4:43pm UTC](https://www.ruby-forum.com/t/help-with-customising-the-irb-prompt/85933 "2007-02-18T16:43:42Z")

</div>

Hi, I’m new to this newsgroup, so I’m not sure if this is the right place to ask. Ok, so what I’m trying to do is customise the IRB prompt in a rather complicated way: I want to print %i\*2 (or even just %i) spaces at …

---

## [Exit in a bloc DRY way](https://www.ruby-forum.com/t/exit-in-a-bloc-dry-way/85974)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 8\
**Last updated:** [February 18, 2007, 2:16pm UTC](https://www.ruby-forum.com/t/exit-in-a-bloc-dry-way/85974 "2007-02-18T14:16:27Z")

</div>

I wrote this code that’s running well… origin = false contact.each {|c| origin = true if c.from == parameter } nb -= 1 if origin is there any way to write it in one line ? (exiting from the bloc when the conditio…

---

## [Array .. more funkyness .. ;-)](https://www.ruby-forum.com/t/array-more-funkyness/85916)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 4\
**Last updated:** [February 18, 2007, 12:40pm UTC](https://www.ruby-forum.com/t/array-more-funkyness/85916 "2007-02-18T12:40:19Z")

</div>

I need to produce such array : root = \[“22”, “friend 22”, \[“11”, “contact 11”, \[ \] \] , \[“13”, “contact 13”\], \[“17”, “contact 17”\]\] writing root\[0\] = friend.id\_to\_s root\[1\] = friend.pseudo then for each friend.cont…

---

## [Ri usage](https://www.ruby-forum.com/t/ri-usage/85940)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 4\
**Last updated:** [February 18, 2007, 11:14am UTC](https://www.ruby-forum.com/t/ri-usage/85940 "2007-02-18T11:14:10Z")

</div>

I am trying to learn how to use ri effectively. I was looking up methods for an Array. If I type Array.methods.sort at the irb prompt, it displays a whole slew of methods. If I then type “ri Array.sort” at the comm…

---

## [One-Click Ruby Installer 1.8.5-23 released](https://www.ruby-forum.com/t/one-click-ruby-installer-1-8-5-23-released/85968)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 0\
**Last updated:** [February 18, 2007, 9:59am UTC](https://www.ruby-forum.com/t/one-click-ruby-installer-1-8-5-23-released/85968 "2007-02-18T09:59:07Z")

</div>

Last week’s release of 1.8.5-22 was missing the readline package (which gives you history and tab completion in irb), plus a new version of FXRuby was released just days after 1.8.5-22. So, this release fixes those t…

---

## [Does it make sense to flush and close?](https://www.ruby-forum.com/t/does-it-make-sense-to-flush-and-close/85741)

<div class="topic-metadata">

**Author:** [@mischa78](https://www.ruby-forum.com/u/mischa78)\
**Replies:** 3\
**Last updated:** [February 18, 2007, 8:45am UTC](https://www.ruby-forum.com/t/does-it-make-sense-to-flush-and-close/85741 "2007-02-18T08:45:04Z")

</div>

Hi everyone, Consider the following code: Save the file on the file system File.open(self.temp\_path, ‘wb’) do |f| while buff = myfile\_field.read(4096) f.write(buff) f.flush end end Is there any benefit in flushin…

---

## [Set vs Hash](https://www.ruby-forum.com/t/set-vs-hash/85890)

<div class="topic-metadata">

**Author:** [@SunRaySon](https://www.ruby-forum.com/u/SunRaySon)\
**Replies:** 4\
**Last updated:** [February 18, 2007, 5:46am UTC](https://www.ruby-forum.com/t/set-vs-hash/85890 "2007-02-18T05:46:57Z")

</div>

Are there any general guidelines on when a “Set” should be used and when a “Hash” should be used. Are there any limitations to “Set” Kiran K.

---

## [Re: class local instance variable](https://www.ruby-forum.com/t/re-class-local-instance-variable/85961)

<div class="topic-metadata">

**Author:** [@Park\_Ji-In](https://www.ruby-forum.com/u/Park_Ji-In)\
**Replies:** 0\
**Last updated:** [February 18, 2007, 4:22am UTC](https://www.ruby-forum.com/t/re-class-local-instance-variable/85961 "2007-02-18T04:22:53Z")

</div>

æœ´ èŠå°ã§ã™ã€‚ 2007/2/18, Yukihiro M. removed\_email\_address@domain.invalid: ãŸã—ã‹ã«å…ƒã®ã‚¯ãƒ©ã‚¹ã¨instance\_evalã§ã¯ã‚ã‘ãŒé•ã†ã‚“ã§ã™ã­ã€‚ã§ã‚‚ instance\_evalã¨ã‹ã€ç‰¹ç•°ã‚¯ãƒ©ã‚¹ã ã¨ãã®…

---

## [Ruby Tk: how to make something happen periodically?](https://www.ruby-forum.com/t/ruby-tk-how-to-make-something-happen-periodically/85129)

<div class="topic-metadata">

**Author:** [@S\_P\_Arif\_Sahari\_Wib](https://www.ruby-forum.com/u/S_P_Arif_Sahari_Wib)\
**Replies:** 5\
**Last updated:** [February 18, 2007, 2:30am UTC](https://www.ruby-forum.com/t/ruby-tk-how-to-make-something-happen-periodically/85129 "2007-02-18T02:30:46Z")

</div>

Hi! In Ruby Tk, how to make something happen periodically, while the user does not touch the button, menu, etc.? Thanks!

---

## [Working with forms](https://www.ruby-forum.com/t/working-with-forms/85944)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 18, 2007, 12:35am UTC](https://www.ruby-forum.com/t/working-with-forms/85944 "2007-02-18T00:35:38Z")

</div>

Hello, I’m very new to Ruby and haven’t really spent much time on it. I’m hoping for some enlightenment. I’m in the process of designing a financial application that I hope can be web based. It’ll connect to either…

---

## [Interesting usages of Struct?](https://www.ruby-forum.com/t/interesting-usages-of-struct/85876)

<div class="topic-metadata">

**Author:** [@Joe\_at\_CodeGear](https://www.ruby-forum.com/u/Joe_at_CodeGear)\
**Replies:** 7\
**Last updated:** [February 18, 2007, 12:31am UTC](https://www.ruby-forum.com/t/interesting-usages-of-struct/85876 "2007-02-18T00:31:38Z")

</div>

Anyone have an interesting or idiomatic usage of Struct? Other than the obvious usage for on-the-fly attr reader/writer objects, what else can you do with this? One use case that came to mind was for managing CSV file…

---

## [RSpec 0.8.0-RC1](https://www.ruby-forum.com/t/rspec-0-8-0-rc1/85921)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 0\
**Last updated:** [February 17, 2007, 6:11pm UTC](https://www.ruby-forum.com/t/rspec-0-8-0-rc1/85921 "2007-02-17T18:11:53Z")

</div>

The RSpec Development Team is pleased to announce Release Candidate 1 of RSpec 0.8.0. Since we’re doing a Release Candidate and we don’t really have a separate gem server set up, everything you need is tagged in subv…

---

## [Using Ruby as an extension language](https://www.ruby-forum.com/t/using-ruby-as-an-extension-language/85812)

<div class="topic-metadata">

**Author:** [@Harold\_H](https://www.ruby-forum.com/u/Harold_H)\
**Replies:** 5\
**Last updated:** [February 17, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/using-ruby-as-an-extension-language/85812 "2007-02-17T17:07:44Z")

</div>

I’d like to use Ruby as an extension language for software written on a Windows-like (actually xbox360) platform in C++. Specifically, I’d like to be able to embed a Ruby interpreter into my application so that I can …

---

## [Last call for the MountainWest Ruby Conf](https://www.ruby-forum.com/t/last-call-for-the-mountainwest-ruby-conf/85914)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [February 17, 2007, 4:40pm UTC](https://www.ruby-forum.com/t/last-call-for-the-mountainwest-ruby-conf/85914 "2007-02-17T16:40:41Z")

</div>

If you live in the Mountain West (Colorado, Arizona, Idaho, Nevada, and Utah), or don’t mind a bit of travel, You should look into the 2007 MountainWest RubyConf in Salt Lake City, Utah on March 16th and 17th. We’ve …

---

## [Ruby blogging contest](https://www.ruby-forum.com/t/ruby-blogging-contest/85912)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [February 17, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/ruby-blogging-contest/85912 "2007-02-17T16:31:40Z")

</div>

There are less that two weeks left to submit an entry for the January On Ruby/Apress blogging contest. The topic is “How has Ruby stretched or blown your mind.” Rules (and links to entries) are at: The winner get…

---

## [Gotham Ruby Conference Update and CFP Reminder](https://www.ruby-forum.com/t/gotham-ruby-conference-update-and-cfp-reminder/85910)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [February 17, 2007, 4:08pm UTC](https://www.ruby-forum.com/t/gotham-ruby-conference-update-and-cfp-reminder/85910 "2007-02-17T16:08:37Z")

</div>

Hi folks, I’m forwarding from the NYC.rb mailing list on behalf of the GoRuCo organizers =========== Hi there, some reminders on our regional Ruby conference in April: There are less than two weeks left to submit yo…

---

## [Gmailer](https://www.ruby-forum.com/t/gmailer/85809)

<div class="topic-metadata">

**Author:** [@unni.tallman](https://www.ruby-forum.com/u/unni.tallman)\
**Replies:** 2\
**Last updated:** [February 17, 2007, 4:08pm UTC](https://www.ruby-forum.com/t/gmailer/85809 "2007-02-17T16:08:37Z")

</div>

How can i send HTML emails using the ruby gmailer module?

---

## [Uid\_t/gid\_t may be bigger than plain 'int' type](https://www.ruby-forum.com/t/uid-t-gid-t-may-be-bigger-than-plain-int-type/85913)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 1\
**Last updated:** [February 17, 2007, 4:04pm UTC](https://www.ruby-forum.com/t/uid-t-gid-t-may-be-bigger-than-plain-int-type/85913 "2007-02-17T16:04:37Z")

</div>

e$B$J$+$@$G$9!#e(B e$B$7$P$i$/A0$Ke(B\[ruby-core:08897\]e$B$GJs9p$5$l$?OC$G$9$,!"e(Buide$B$de(Bgide$B!"e(B e$B$D$$$G$Ke(Bpide$B$bI,$:$7$be(Binte$B$G%+%P!\<$G$-$k$H$O$+$.$j$^$;$s!#:#$N$He(B e$B$3$me(Bext/etce$B$G$Oe(Buid\_…

---

## [Cross-thread violation on rb\_gc() and Windows arguments](https://www.ruby-forum.com/t/cross-thread-violation-on-rb-gc-and-windows-arguments/85772)

<div class="topic-metadata">

**Author:** [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Replies:** 5\
**Last updated:** [February 17, 2007, 3:57pm UTC](https://www.ruby-forum.com/t/cross-thread-violation-on-rb-gc-and-windows-arguments/85772 "2007-02-17T15:57:35Z")

</div>

Hello, I was working on a script and running into problems with passing an argument with a wildcard with the C:\\WINDOWS\\System32 path. Observe: C:\>more test.rb puts ARGV C:\>test.rb C:\\ruby\*.txt C:/ruby/ChangeLog.t…

---

## [Asserting exception messages?](https://www.ruby-forum.com/t/asserting-exception-messages/85856)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 2\
**Last updated:** [February 17, 2007, 3:21pm UTC](https://www.ruby-forum.com/t/asserting-exception-messages/85856 "2007-02-17T15:21:32Z")

</div>

I’ve been looking around, but I haven’t found a simple way of asserting that a raised exception has a specific message. RSpec can do this quite easily: lambda{ @fixture.foo }.should\_raise(FooError, 'out of foo, try…

---

## [Date.parse in 1.9](https://www.ruby-forum.com/t/date-parse-in-1-9/85444)

<div class="topic-metadata">

**Author:** [@kubo](https://www.ruby-forum.com/u/kubo)\
**Replies:** 11\
**Last updated:** [February 17, 2007, 1:45pm UTC](https://www.ruby-forum.com/t/date-parse-in-1-9/85444 "2007-02-17T13:45:25Z")

</div>

e$B5WJ\]$G$9!#e(B Date.parse e$B$,e(B 1.9 e$B$GF0$+$J$$$h$&$G$9!#e(B debian e$B$Ne(B ruby 1.8 e$B$G$Oe(B OKe$B!#e(B $ /usr/bin/ruby1.8 -v ruby 1.8.5 (2006-08-25) \[i486-linux\] $ /usr/bin/ruby1.8 -r date -e “p Date.par…

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

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