# Ruby

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

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

---

## [Value of ActiveSupport's Modularization](https://www.ruby-forum.com/t/value-of-activesupports-modularization/68430)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 0\
**Last updated:** [September 12, 2006, 5:09pm UTC](https://www.ruby-forum.com/t/value-of-activesupports-modularization/68430 "2006-09-12T17:09:15Z")

</div>

Curious about this. Can anyone cite a practical benefit of ActiveSupport’s modularization of it’s extensions? What I mean by pratical is a use other than just “cool, see they are all in modules”. To be sure you know w…

---

## [Ruby 1.9 Syntax](https://www.ruby-forum.com/t/ruby-1-9-syntax/68424)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [September 12, 2006, 5:07pm UTC](https://www.ruby-forum.com/t/ruby-1-9-syntax/68424 "2006-09-12T17:07:15Z")

</div>

A quick Ruby 1.9 question: I know you can now get at Oniguruma’s named captures from MatchData objects, but is there a syntax for using them is a sub() replacement string? Thanks. James Edward G. II

---

## [TextMate book now in beta](https://www.ruby-forum.com/t/textmate-book-now-in-beta/68423)

<div class="topic-metadata">

**Author:** [@dirtytree](https://www.ruby-forum.com/u/dirtytree)\
**Replies:** 0\
**Last updated:** [September 12, 2006, 4:45pm UTC](https://www.ruby-forum.com/t/textmate-book-now-in-beta/68423 "2006-09-12T16:45:12Z")

</div>

Folks: Sorry for the commercial, but I’m excited about this one. I’ve been using TextMate for most of my work for a year now—if you’re on a Mac, it really is the best tool for writing Ruby code. So when James Edward…

---

## [Ruby-GetText-Package-1.8.0](https://www.ruby-forum.com/t/ruby-gettext-package-1-8-0/68421)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 0\
**Last updated:** [September 12, 2006, 4:39pm UTC](https://www.ruby-forum.com/t/ruby-gettext-package-1-8-0/68421 "2006-09-12T16:39:12Z")

</div>

Hi, Ruby-GetText-Package-1.8.0 is now available. Changes Support Chinese(Taiwan: zh\_TW), Estonian(et: rails.po only) Improve to support Ruby on Rails. Add GetText.bindtextdomain\_to(klass, domainname), .textdomain\_to…

---

## [String as nil or empty string?](https://www.ruby-forum.com/t/string-as-nil-or-empty-string/68303)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 9\
**Last updated:** [September 12, 2006, 10:20am UTC](https://www.ruby-forum.com/t/string-as-nil-or-empty-string/68303 "2006-09-12T10:20:23Z")

</div>

Hi, With everything in Ruby being an object, should a string be initialised as an empty string e.g. a\_string = “” or nil e.g a\_string = nil cheers aidy

---

## [Blogger Data API](https://www.ruby-forum.com/t/blogger-data-api/68385)

<div class="topic-metadata">

**Author:** [@djmook](https://www.ruby-forum.com/u/djmook)\
**Replies:** 0\
**Last updated:** [September 12, 2006, 9:33am UTC](https://www.ruby-forum.com/t/blogger-data-api/68385 "2006-09-12T09:33:52Z")

</div>

I have spent the past few days looking at the different blog APIs that are out there and messing around with them in an attempt to throw together a blog tool. The APIs I have been using all use xml-rpc. The major API …

---

## [Milwaukee RUG Meeting 9/13/06 at 5:30](https://www.ruby-forum.com/t/milwaukee-rug-meeting-9-13-06-at-5-30/68382)

<div class="topic-metadata">

**Author:** [@tomjerry](https://www.ruby-forum.com/u/tomjerry)\
**Replies:** 0\
**Last updated:** [September 12, 2006, 9:16am UTC](https://www.ruby-forum.com/t/milwaukee-rug-meeting-9-13-06-at-5-30/68382 "2006-09-12T09:16:11Z")

</div>

We’re having a meeting! George is going to tell us all about Capistrano We have books. George, Books and Ruby; want more? Agenda.find :next #=\> http://www.mkerb.org/index.php/Meeting\_9/13/2006 Or just come and join …

---

## [Ruby Site Launced](https://www.ruby-forum.com/t/ruby-site-launced/68365)

<div class="topic-metadata">

**Author:** [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Replies:** 13\
**Last updated:** [September 12, 2006, 8:40am UTC](https://www.ruby-forum.com/t/ruby-site-launced/68365 "2006-09-12T08:40:09Z")

</div>

We just launched the new Ruby Site: http://ruby-lang.org A full write up here: Site Launch At Last! Digg it: http://digg.com/programming/Redesigned\_Ruby\_Site\_Launched Kudos to everyone involved!

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/68381)

<div class="topic-metadata">

**Author:** [@YoungJoo\_Lee](https://www.ruby-forum.com/u/YoungJoo_Lee)\
**Replies:** 0\
**Last updated:** [September 12, 2006, 8:04am UTC](https://www.ruby-forum.com/t/no-subject/68381 "2006-09-12T08:04:05Z")

</div>

unsubscribe – YoungJoo Lee Research Engineer - EZ Communication Gyeonggi Venture Anyang Science Center 11F, 572-5, Anyang8-Dong, Manan-Ku Anyang, Korea 431-060 Office : 82+31+463+6474 Cell : 82+11+9901+4552 Ema…

---

## [Find\_all help](https://www.ruby-forum.com/t/find-all-help/68374)

<div class="topic-metadata">

**Author:** [@kovax](https://www.ruby-forum.com/u/kovax)\
**Replies:** 2\
**Last updated:** [September 12, 2006, 6:59am UTC](https://www.ruby-forum.com/t/find-all-help/68374 "2006-09-12T06:59:59Z")

</div>

Hello, I have an array filled with employee objects that are defined like this: Employee = Struct.new(:name, :age) I would like to use the find\_all method on an array of employee objects to find all employee objects…

---

## [Constant lookup starting in superclass, not derived class](https://www.ruby-forum.com/t/constant-lookup-starting-in-superclass-not-derived-class/68295)

<div class="topic-metadata">

**Author:** [@crenner](https://www.ruby-forum.com/u/crenner)\
**Replies:** 7\
**Last updated:** [September 12, 2006, 6:49am UTC](https://www.ruby-forum.com/t/constant-lookup-starting-in-superclass-not-derived-class/68295 "2006-09-12T06:49:59Z")

</div>

I’m no doubt missing something obvious but I found this a little confusing. I would have expected the constant lookup to start in Bar and therefore succeed. Instead, it appears to start in Base where Foo is not defi…

---

## [QA for a script that relies heavily on net/ftp](https://www.ruby-forum.com/t/qa-for-a-script-that-relies-heavily-on-net-ftp/68376)

<div class="topic-metadata">

**Author:** [@phillyloco](https://www.ruby-forum.com/u/phillyloco)\
**Replies:** 0\
**Last updated:** [September 12, 2006, 6:47am UTC](https://www.ruby-forum.com/t/qa-for-a-script-that-relies-heavily-on-net-ftp/68376 "2006-09-12T06:47:58Z")

</div>

Hello, I wrote a script that should manage regular backups of a number of things and ftp the backups to a remote site using net/ftp. How can I go about testing this really? I’m not quite sure how I can use Unit Tests…

---

## [Getting argument names and default values: doable (if hackis](https://www.ruby-forum.com/t/getting-argument-names-and-default-values-doable-if-hackis/68330)

<div class="topic-metadata">

**Author:** [@tulkas](https://www.ruby-forum.com/u/tulkas)\
**Replies:** 4\
**Last updated:** [September 12, 2006, 6:27am UTC](https://www.ruby-forum.com/t/getting-argument-names-and-default-values-doable-if-hackis/68330 "2006-09-12T06:27:54Z")

</div>

I’ve written some code to get the argument names and their default values (if any) as methods are defined; it can be found at http://eigenclass.org/hiki.rb?method+arguments+via+introspection It uses some tricky intro…

---

## [Commit miss](https://www.ruby-forum.com/t/commit-miss/67181)

<div class="topic-metadata">

**Author:** [@Hidetoshi\_NAGAI](https://www.ruby-forum.com/u/Hidetoshi_NAGAI)\
**Replies:** 6\
**Last updated:** [September 12, 2006, 5:35am UTC](https://www.ruby-forum.com/t/commit-miss/67181 "2006-09-12T05:35:51Z")

</div>

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B e$B@h$\[$Ie(B ext/tk/lib/tk/font.rb e$B$N=$@5$re(B ruby\_1\_8 branch e$B$Ke(B commit e$B$7$h$&$H$7$?$N$G$9$,!$$=$N:\]$K!$e(B “checding in version.h” e$B$N8e$G$&$^$/%U%!%$%k$re(B lock e$B$G$-…

---

## [State machine in ruby](https://www.ruby-forum.com/t/state-machine-in-ruby/68054)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 21\
**Last updated:** [September 12, 2006, 4:53am UTC](https://www.ruby-forum.com/t/state-machine-in-ruby/68054 "2006-09-12T04:53:46Z")

</div>

So I’m refactoring a very ugly piece of client code that needs to implement some fairly complicated error correction over a line based tcp protocol. There are about 10 different error scenarios I have to detect and r…

---

## [Fwd: Fml status report (ruby-talk ML)](https://www.ruby-forum.com/t/fwd-fml-status-report-ruby-talk-ml/68363)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [September 12, 2006, 2:03am UTC](https://www.ruby-forum.com/t/fwd-fml-status-report-ruby-talk-ml/68363 "2006-09-12T02:03:29Z")

</div>

I’ve just had 4 copies of the same email from ruby-talk-admin, presumably in response to my query here about how to unsubscribe. Can anyone help me to interpret it? They all say ‘your mail has no effective commands’ a…

---

## [Fwd: Problems trying to unsubscribe](https://www.ruby-forum.com/t/fwd-problems-trying-to-unsubscribe/68361)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [September 12, 2006, 1:51am UTC](https://www.ruby-forum.com/t/fwd-problems-trying-to-unsubscribe/68361 "2006-09-12T01:51:29Z")

</div>

Hi Jody, I was wondering if you’d had any luck? Will you let me know the secret if you manage to find it? Thanks! Catherine -----Original Message----- From: removed\_email\_address@domain.invalid To: removed\_email\_a…

---

## [Passing function into another function](https://www.ruby-forum.com/t/passing-function-into-another-function/68357)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 2\
**Last updated:** [September 12, 2006, 1:17am UTC](https://www.ruby-forum.com/t/passing-function-into-another-function/68357 "2006-09-12T01:17:27Z")

</div>

Hi, I couldn’t work out the syntax for the following: class Reports def self.This; end def self.That; end end def do\_something\_with\_a\_report report calls Reports::This or Reports::That, dtermined by what report is …

---

## [Re: passing function into another function](https://www.ruby-forum.com/t/re-passing-function-into-another-function/68359)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [September 12, 2006, 1:13am UTC](https://www.ruby-forum.com/t/re-passing-function-into-another-function/68359 "2006-09-12T01:13:26Z")

</div>

From: Joe Van D. \[mailto:removed\_email\_address@domain.invalid\] def do\_something\_with\_a\_report report calls Reports::This or Reports::That, dtermined by what report is something like report.call ? end class Reports …

---

## [Reflection and files](https://www.ruby-forum.com/t/reflection-and-files/68355)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [September 12, 2006, 12:59am UTC](https://www.ruby-forum.com/t/reflection-and-files/68355 "2006-09-12T00:59:24Z")

</div>

Hi Suppose I have a ruby file with a single class. Is it possible to write a ruby script that can extract the class name from the file? Thanks

---

## [Re: how to click the Buttons in Forms](https://www.ruby-forum.com/t/re-how-to-click-the-buttons-in-forms/68352)

<div class="topic-metadata">

**Author:** [@Ban\_Hoang](https://www.ruby-forum.com/u/Ban_Hoang)\
**Replies:** 0\
**Last updated:** [September 12, 2006, 12:31am UTC](https://www.ruby-forum.com/t/re-how-to-click-the-buttons-in-forms/68352 "2006-09-12T00:31:22Z")

</div>

Thanks Patrick! It works!

---

## [Cross-platform standalone Ruby apps?](https://www.ruby-forum.com/t/cross-platform-standalone-ruby-apps/67639)

<div class="topic-metadata">

**Author:** [@pieter78](https://www.ruby-forum.com/u/pieter78)\
**Replies:** 13\
**Last updated:** [September 12, 2006, 12:02am UTC](https://www.ruby-forum.com/t/cross-platform-standalone-ruby-apps/67639 "2006-09-12T00:02:04Z")

</div>

Hi, I am new here, experience with PHP and looking for a similar language that permits to do cross-platform programming of database driven apps, so that they run on Mac OS X, Linux and Windows from one codebase with …

---

## [Combine @item.foo.nil? || @item.foo.empty??](https://www.ruby-forum.com/t/combine-item-foo-nil-item-foo-empty/68074)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 10\
**Last updated:** [September 11, 2006, 11:59pm UTC](https://www.ruby-forum.com/t/combine-item-foo-nil-item-foo-empty/68074 "2006-09-11T23:59:18Z")

</div>

I have code like this in my (Markaby) templates: tr do td @item.foo end unless (@item.foo.nil? || @item.foo.empty?) Is there a way to combine these two OR clauses into one? tr do td @item.foo end unless @item.foo.…

---

## [Real World Scalability and Ruby - Top 20](https://www.ruby-forum.com/t/real-world-scalability-and-ruby-top-20/68192)

<div class="topic-metadata">

**Author:** [@jose](https://www.ruby-forum.com/u/jose)\
**Replies:** 24\
**Last updated:** [September 11, 2006, 11:43pm UTC](https://www.ruby-forum.com/t/real-world-scalability-and-ruby-top-20/68192 "2006-09-11T23:43:16Z")

</div>

Folks, After the long post regarding Joe’s now infamous entry about Ruby, I wondered, what have the really successful, scalable, big, websites / web applications out there have used. So I turned mostly to two sources…

---

## [Uninstalling ruby](https://www.ruby-forum.com/t/uninstalling-ruby/68342)

<div class="topic-metadata">

**Author:** [@chilaquil](https://www.ruby-forum.com/u/chilaquil)\
**Replies:** 1\
**Last updated:** [September 11, 2006, 11:05pm UTC](https://www.ruby-forum.com/t/uninstalling-ruby/68342 "2006-09-11T23:05:12Z")

</div>

Hi, I wonder if there is a way to uninstall ruby. The network administrator who is installing ruby on our server put 5 different copies/versions on the server and now have trouble updating the gems. I read that ther…

---

## [Re: how to click the Buttons in Forms](https://www.ruby-forum.com/t/re-how-to-click-the-buttons-in-forms/68344)

<div class="topic-metadata">

**Author:** [@Ban\_Hoang](https://www.ruby-forum.com/u/Ban_Hoang)\
**Replies:** 0\
**Last updated:** [September 11, 2006, 10:55pm UTC](https://www.ruby-forum.com/t/re-how-to-click-the-buttons-in-forms/68344 "2006-09-11T22:55:11Z")

</div>

I still get an error if I use: $ie.frame(“bottom”).button(:value, /Login/).click Error: test\_01\_LoginTestCase(TC\_pulldownBox\_Links\_Clicks): Watir::Exception::UnknownObjectException: Unable to locate object, using va…

---

## [BYU Ruby Users Group meeting tomorrow](https://www.ruby-forum.com/t/byu-ruby-users-group-meeting-tomorrow/68340)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [September 11, 2006, 10:33pm UTC](https://www.ruby-forum.com/t/byu-ruby-users-group-meeting-tomorrow/68340 "2006-09-11T22:33:07Z")

</div>

Tuesday, Sep 12th at 7PM in Room 120 of the Talmage Math & Computer Science building at BYU http://map.byu.edu look for building 80 Ammon C. and Devlin D. will be doing a tag team introduction to Ruby on Rails Pat…

---

## [\[SOLUTION\] Secret Agent 00111 (#94)](https://www.ruby-forum.com/t/solution-secret-agent-00111-94/68337)

<div class="topic-metadata">

**Author:** [@Karl\_Czisch](https://www.ruby-forum.com/u/Karl_Czisch)\
**Replies:** 0\
**Last updated:** [September 11, 2006, 9:53pm UTC](https://www.ruby-forum.com/t/solution-secret-agent-00111-94/68337 "2006-09-11T21:53:02Z")

</div>

Hi, here is my solution (00111\_gizmo.rb) Karl #################################### require ‘stringio’ class SecretAgent00111CommunicationGizmo class UndefinedRLE \< StandardError end private class Rle def initial…

---

## [How to click the Buttons in Forms](https://www.ruby-forum.com/t/how-to-click-the-buttons-in-forms/68329)

<div class="topic-metadata">

**Author:** [@Ban\_Hoang](https://www.ruby-forum.com/u/Ban_Hoang)\
**Replies:** 1\
**Last updated:** [September 11, 2006, 9:35pm UTC](https://www.ruby-forum.com/t/how-to-click-the-buttons-in-forms/68329 "2006-09-11T21:35:48Z")

</div>

Hi , I try to write the code to click the button in form but it keep give me errors. Any one have any idea how to make it work? Thanks! Below is the code: $ie.frame(“bottom”).button(:value, “:: Login \>”).click HTM…

---

## [Default values for arguments](https://www.ruby-forum.com/t/default-values-for-arguments/68334)

<div class="topic-metadata">

**Author:** [@pkspence](https://www.ruby-forum.com/u/pkspence)\
**Replies:** 0\
**Last updated:** [September 11, 2006, 9:31pm UTC](https://www.ruby-forum.com/t/default-values-for-arguments/68334 "2006-09-11T21:31:48Z")

</div>

For some odd reason, the default values for some of the optional arguments are not getting assigned, namely the \_dateTime argument. As a result, I have to add the “if blahblah.nil?” hacks below. Anyone know what’s goi…

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

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