# Ruby

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

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

---

## [Are MatchData objects mutable?](https://www.ruby-forum.com/t/are-matchdata-objects-mutable/105197)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 4\
**Last updated:** [May 30, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/are-matchdata-objects-mutable/105197 "2007-05-30T22:18:26Z")

</div>

A few times in my programs I’ve tried to modify elements of the array returned by .match, and it always causes strange errors later in my code. For example, if I do: s = “aaa bbb ccc” m = /(.) (.) (.\*)/.match(s) m\[…

---

## [RubyScript2Exe 0.5.3](https://www.ruby-forum.com/t/rubyscript2exe-0-5-3/105534)

<div class="topic-metadata">

**Author:** [@erikveen](https://www.ruby-forum.com/u/erikveen)\
**Replies:** 0\
**Last updated:** [May 30, 2007, 9:35pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-0-5-3/105534 "2007-05-30T21:35:15Z")

</div>

I’ve updated RubyScript2Exe. I had to, because RubyScript2Exe and RubyGems weren’t friends anymore… (Since RubyGems 0.9.3.) I’ts just a quick fix/hack. I’ll reconsider the solution in future versions. For more inform…

---

## [Question about mailfactory](https://www.ruby-forum.com/t/question-about-mailfactory/105533)

<div class="topic-metadata">

**Author:** [@benemson](https://www.ruby-forum.com/u/benemson)\
**Replies:** 0\
**Last updated:** [May 30, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/question-about-mailfactory/105533 "2007-05-30T20:46:12Z")

</div>

I am using the mailfactory from rubyforge. It seems to work well. Was wondering how best to reuse the object I created with it. There does not seem to be a reset or finish method. Do I need to destroy the object af…

---

## [Using hash for method parameters](https://www.ruby-forum.com/t/using-hash-for-method-parameters/105518)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 5\
**Last updated:** [May 30, 2007, 8:26pm UTC](https://www.ruby-forum.com/t/using-hash-for-method-parameters/105518 "2007-05-30T20:26:10Z")

</div>

\#hi, #I have a login class class Login def with(:username, :password) login.username.set(:username) login.password.set(:password) end end #now in my invocation, I would like to do something like this, login = Lo…

---

## [RubyD -- Ruby in D?](https://www.ruby-forum.com/t/rubyd-ruby-in-d/105517)

<div class="topic-metadata">

**Author:** [@jzakiya](https://www.ruby-forum.com/u/jzakiya)\
**Replies:** 2\
**Last updated:** [May 30, 2007, 7:43pm UTC](https://www.ruby-forum.com/t/rubyd-ruby-in-d/105517 "2007-05-30T19:43:06Z")

</div>

I was looking through the latest Linux Format Magazine, (June 2007, LXF93) and it had an article on th D programming language. I had read some things about D before, but now it seems further along in development. It …

---

## [Finding files associated with objects in Ruby](https://www.ruby-forum.com/t/finding-files-associated-with-objects-in-ruby/105430)

<div class="topic-metadata">

**Author:** [@gparsons](https://www.ruby-forum.com/u/gparsons)\
**Replies:** 5\
**Last updated:** [May 30, 2007, 7:35pm UTC](https://www.ruby-forum.com/t/finding-files-associated-with-objects-in-ruby/105430 "2007-05-30T19:35:12Z")

</div>

This is a bit of an odd request, but does anyone know how i would find what file Ruby is using to define an object in? For instance if i had a few libraries in my include path and they defined the (ever useful) class…

---

## [Substituting Variables](https://www.ruby-forum.com/t/substituting-variables/105515)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 7\
**Last updated:** [May 30, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/substituting-variables/105515 "2007-05-30T17:41:49Z")

</div>

Hello, I am running into difficulties trying to use a variable in a substitution. Here’s an example: var = ‘October’ ‘30 May 2007’.sub( /(\\d+)\\s(\\w+)\\s(\\d+)/, ‘\\1 #{var} \\3’ ) Here I would like to get ‘30 October 2…

---

## [RubyScript2Exe](https://www.ruby-forum.com/t/rubyscript2exe/105214)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 9\
**Last updated:** [May 30, 2007, 5:37pm UTC](https://www.ruby-forum.com/t/rubyscript2exe/105214 "2007-05-30T17:37:48Z")

</div>

Hello all! I just downloaded rubyscript2exe.gem from http://www.erikveen.dds.nl/rubyscript2exe/index.html, but it isn’t working. I’ve done exactly as the manual says, but it outputs the following: Tracing x … Could…

---

## [Redbox question](https://www.ruby-forum.com/t/redbox-question/105508)

<div class="topic-metadata">

**Author:** [@jerryjj](https://www.ruby-forum.com/u/jerryjj)\
**Replies:** 1\
**Last updated:** [May 30, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/redbox-question/105508 "2007-05-30T17:11:24Z")

</div>

I have built, with the massive help of a friend, a website to showcase my wife’s jewelry. I would like to add the redbox for when people click on a full size image. I like that over a new windows, or changing the curr…

---

## [EventMachine 0.7.2 has been released](https://www.ruby-forum.com/t/eventmachine-0-7-2-has-been-released/105411)

<div class="topic-metadata">

**Author:** [@blackhedd](https://www.ruby-forum.com/u/blackhedd)\
**Replies:** 5\
**Last updated:** [May 30, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/eventmachine-0-7-2-has-been-released/105411 "2007-05-30T17:07:24Z")

</div>

All: The Ruby/EventMachine team released version 0.7.2 last week. The release has been stable and hasn’t turned up any significant problems. For Windows users, there is a binary gem that was built on a VC6 tool-chain…

---

## [Which ODBC?](https://www.ruby-forum.com/t/which-odbc/105371)

<div class="topic-metadata">

**Author:** [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Replies:** 6\
**Last updated:** [May 30, 2007, 4:35pm UTC](https://www.ruby-forum.com/t/which-odbc/105371 "2007-05-30T16:35:15Z")

</div>

Hello, I am investigating ways to connect my Ruby (non-Rails) application on Windows to either MSSQL, MySql or Oracle databases. ODBC seems to be a common way for accessing them, so I wonder how to best access ODBC …

---

## [Ruport-util 0.6.0](https://www.ruby-forum.com/t/ruport-util-0-6-0/105510)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [May 30, 2007, 4:24pm UTC](https://www.ruby-forum.com/t/ruport-util-0-6-0/105510 "2007-05-30T16:24:13Z")

</div>

== Ruby Reports Utilities (ruport-util) == What is it? == A collection of tools / helper libs to use with Ruby Reports. Current support includes: PDF Form Drawing Primatives (New!) A Report runner class A code gener…

---

## [Rutema 0.3 Released](https://www.ruby-forum.com/t/rutema-0-3-released/105509)

<div class="topic-metadata">

**Author:** [@Vassilis\_R](https://www.ruby-forum.com/u/Vassilis_R)\
**Replies:** 0\
**Last updated:** [May 30, 2007, 4:20pm UTC](https://www.ruby-forum.com/t/rutema-0-3-released/105509 "2007-05-30T16:20:11Z")

</div>

rutema version 0.3 has been released! This newest release adds a new tool to the Rutema arsenal, rutemah, plus an ActiveRecord reporter that will save test run results in a SQLite database. rutemah is at the moment (…

---

## [Enumerable#serially - those nifty functions w/o memory footp](https://www.ruby-forum.com/t/enumerable-serially-those-nifty-functions-w-o-memory-footp/105504)

<div class="topic-metadata">

**Author:** [@SonOfLilit](https://www.ruby-forum.com/u/SonOfLilit)\
**Replies:** 3\
**Last updated:** [May 30, 2007, 4:03pm UTC](https://www.ruby-forum.com/t/enumerable-serially-those-nifty-functions-w-o-memory-footp/105504 "2007-05-30T16:03:08Z")

</div>

Hello, I’ve seen many people write things like: (1…1000000).to\_a. # anything that is a huge enumerable can work as an example collect{|x| num\_appearances(x)}.select{|x| x.is\_norwegian?}.collect{|x| x.paycheck}.each{…

---

## [Kiss your boring tasks goodbye: Everyday Scripting With Ruby](https://www.ruby-forum.com/t/kiss-your-boring-tasks-goodbye-everyday-scripting-with-ruby/105412)

<div class="topic-metadata">

**Author:** [@sharon](https://www.ruby-forum.com/u/sharon)\
**Replies:** 8\
**Last updated:** [May 30, 2007, 3:51pm UTC](https://www.ruby-forum.com/t/kiss-your-boring-tasks-goodbye-everyday-scripting-with-ruby/105412 "2007-05-30T15:51:03Z")

</div>

Chances are, you do some boring, repetitive data-related tasks at work – ones a computer could easily do, if only it was told how. “At one desk, a tester is entering test data into a database by hand. At another, a pr…

---

## [Regexp to extract number with hyphen](https://www.ruby-forum.com/t/regexp-to-extract-number-with-hyphen/105441)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [May 30, 2007, 3:40pm UTC](https://www.ruby-forum.com/t/regexp-to-extract-number-with-hyphen/105441 "2007-05-30T15:40:55Z")

</div>

I have a text with “foo 01-02” in a string. I want to extract foo 01-02 using regexp. reg = /foo (\\d+)/ only extracts foo with numbers when there is no hyphen. reg = /foo (\\d{1,})|(-)|(\\d{1,})/ only extracts foo 01.…

---

## [Looking for submissions for a "Ruby Project Spotlight" serie](https://www.ruby-forum.com/t/looking-for-submissions-for-a-ruby-project-spotlight-serie/105503)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [May 30, 2007, 3:32pm UTC](https://www.ruby-forum.com/t/looking-for-submissions-for-a-ruby-project-spotlight-serie/105503 "2007-05-30T15:32:54Z")

</div>

Hey folks, In the continuing effort to revitalize the O’Reilly Ruby blog, I’m starting up a news series called “Ruby Project Spotlight”. Essentially, I will accept code-only submissions from new or rapidly changing p…

---

## [Ruby on 64-bit Linux](https://www.ruby-forum.com/t/ruby-on-64-bit-linux/59152)

<div class="topic-metadata">

**Author:** [@bofar](https://www.ruby-forum.com/u/bofar)\
**Replies:** 3\
**Last updated:** [May 30, 2007, 2:45pm UTC](https://www.ruby-forum.com/t/ruby-on-64-bit-linux/59152 "2007-05-30T14:45:46Z")

</div>

Hi, I imagine this topic has been covered before, but I have searched and looked through the forum and cannot find any mention of it. I need to run Ruby on a 64-bit Fedora Linux System. When I compile it, I get an e…

---

## [Hash behavior query](https://www.ruby-forum.com/t/hash-behavior-query/105494)

<div class="topic-metadata">

**Author:** [@Abhisek\_Datta](https://www.ruby-forum.com/u/Abhisek_Datta)\
**Replies:** 2\
**Last updated:** [May 30, 2007, 1:58pm UTC](https://www.ruby-forum.com/t/hash-behavior-query/105494 "2007-05-30T13:58:41Z")

</div>

irb(main):001:0\> d = \[1,2,3,4\] =\> \[1, 2, 3, 4\] irb(main):002:0\> h = Hash.new =\> {} irb(main):003:0\> h\[d\] = “hello” =\> “hello” irb(main):004:0\> h =\> {\[1, 2, 3, 4\]=\>“hello”} irb(main):005:0\> h\[d\] =\> “hello” irb(m…

---

## [Help with simple meta programming](https://www.ruby-forum.com/t/help-with-simple-meta-programming/105467)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [May 30, 2007, 1:40pm UTC](https://www.ruby-forum.com/t/help-with-simple-meta-programming/105467 "2007-05-30T13:40:38Z")

</div>

Hi, This is a basic question of meta-programming with Ruby, which I’m still getting familiar with. I want to change/create a new attr\_accessor such that it calls a kind of proxy for retrieving the variable (which is …

---

## [Alias\_method code snippet doubt](https://www.ruby-forum.com/t/alias-method-code-snippet-doubt/105471)

<div class="topic-metadata">

**Author:** [@Googy](https://www.ruby-forum.com/u/Googy)\
**Replies:** 2\
**Last updated:** [May 30, 2007, 12:41pm UTC](https://www.ruby-forum.com/t/alias-method-code-snippet-doubt/105471 "2007-05-30T12:41:29Z")

</div>

module Mod alias\_method :orig\_exit, :exit def exit(code=0) puts “Exiting with code #{code}” orig\_exit(code) end end include Mod exit(99) Above snippet we are creating new alias (orig\_exit) for already existing …

---

## [True arity](https://www.ruby-forum.com/t/true-arity/105374)

<div class="topic-metadata">

**Author:** [@Daniel\_DeLorme](https://www.ruby-forum.com/u/Daniel_DeLorme)\
**Replies:** 7\
**Last updated:** [May 30, 2007, 11:52am UTC](https://www.ruby-forum.com/t/true-arity/105374 "2007-05-30T11:52:24Z")

</div>

Is there a way to get the maximum number of arguments that a method can receive? Method#arity only gives the lower bound… Daniel

---

## [Killing sons (Linux)](https://www.ruby-forum.com/t/killing-sons-linux/105287)

<div class="topic-metadata">

**Author:** [@ohad](https://www.ruby-forum.com/u/ohad)\
**Replies:** 4\
**Last updated:** [May 30, 2007, 11:46am UTC](https://www.ruby-forum.com/t/killing-sons-linux/105287 "2007-05-30T11:46:19Z")

</div>

Maybe this isn’t strictly a Ruby question, but I hope someone here can help: I have a job-management application, with a central daemon which receives job requests. Upon receiving this request, it forks and then runs…

---

## [Remove from mailing list](https://www.ruby-forum.com/t/remove-from-mailing-list/105485)

<div class="topic-metadata">

**Author:** [@Benoit\_Poux](https://www.ruby-forum.com/u/Benoit_Poux)\
**Replies:** 0\
**Last updated:** [May 30, 2007, 11:34am UTC](https://www.ruby-forum.com/t/remove-from-mailing-list/105485 "2007-05-30T11:34:09Z")

</div>

Please take me off the mailing list. Thank you

---

## [Unit-testing and sessions](https://www.ruby-forum.com/t/unit-testing-and-sessions/105475)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [May 30, 2007, 10:59am UTC](https://www.ruby-forum.com/t/unit-testing-and-sessions/105475 "2007-05-30T10:59:50Z")

</div>

So, I have started on a unit testing framework for the modules I’m using in a web app. That’s working, but what about testing the CGI scripts which use them? WebUnit seems to support doing this to scripts that have …

---

## [Pointers for Designing UNO Ruby Bridge](https://www.ruby-forum.com/t/pointers-for-designing-uno-ruby-bridge/105469)

<div class="topic-metadata">

**Author:** [@sneha](https://www.ruby-forum.com/u/sneha)\
**Replies:** 1\
**Last updated:** [May 30, 2007, 10:35am UTC](https://www.ruby-forum.com/t/pointers-for-designing-uno-ruby-bridge/105469 "2007-05-30T10:35:46Z")

</div>

Hi, I am interested in designing a bridge between Ruby and UNO. I have looked over the following links for documentation: http://udk.openoffice.org/ http://www.ruby-lang.org/en/documentation/ I am not able to figure…

---

## [Symbols vs. Strings](https://www.ruby-forum.com/t/symbols-vs-strings/105423)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 4\
**Last updated:** [May 30, 2007, 10:31am UTC](https://www.ruby-forum.com/t/symbols-vs-strings/105423 "2007-05-30T10:31:45Z")

</div>

I’m new to Ruby, but coming up to speed quickly. One question I still have never seen a good explanation to is this: When is it preferred to a key a hash with a symbol, and when is it keyed by string? Is this just p…

---

## [Respond\_to? not working for dynamically generated methods](https://www.ruby-forum.com/t/respond-to-not-working-for-dynamically-generated-methods/105470)

<div class="topic-metadata">

**Author:** [@maurice-gladwell](https://www.ruby-forum.com/u/maurice-gladwell)\
**Replies:** 0\
**Last updated:** [May 30, 2007, 10:29am UTC](https://www.ruby-forum.com/t/respond-to-not-working-for-dynamically-generated-methods/105470 "2007-05-30T10:29:16Z")

</div>

It seems #

---

## [Callcc, each and local val](https://www.ruby-forum.com/t/callcc-each-and-local-val/105394)

<div class="topic-metadata">

**Author:** [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Replies:** 4\
**Last updated:** [May 30, 2007, 10:24am UTC](https://www.ruby-forum.com/t/callcc-each-and-local-val/105394 "2007-05-30T10:24:44Z")

</div>

e$B$3$s$P$s$O!"e(Bsheepman e$B$G$9!#e(B trunk e$B$Ne(B callcc e$B$K4X$7$F$G$9!#e(B Array#each e$B$N%V%m%C%/$NCf$Ge(B callcc e$B$r8F$s$@;~$N!"%m!\<%+%kJQ?t$Ne(B e$B;2\>H$,$\*$+$7$$$G$9!#e(B $ cat t.rb vv = 0 $c = 0 \[…

---

## [Fractals (#125)](https://www.ruby-forum.com/t/fractals-125/105075)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 20\
**Last updated:** [May 30, 2007, 7:06am UTC](https://www.ruby-forum.com/t/fractals-125/105075 "2007-05-30T07:06:23Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

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

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