# Ruby

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

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

---

## [Please help, understanding RJB valid syntax](https://www.ruby-forum.com/t/please-help-understanding-rjb-valid-syntax/133806)

<div class="topic-metadata">

**Author:** [@scootiepuff](https://www.ruby-forum.com/u/scootiepuff)\
**Replies:** 0\
**Last updated:** [April 3, 2008, 8:46pm UTC](https://www.ruby-forum.com/t/please-help-understanding-rjb-valid-syntax/133806 "2008-04-03T20:46:06Z")

</div>

i have some basic syntax/format questions for how to begin using RJB properly, once successfully installed. i’ve been having a lot of trouble getting the ruby scripts (within a rails app) i wrote that make use of rjb …

---

## [Facets v2.4.1 released](https://www.ruby-forum.com/t/facets-v2-4-1-released/133802)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 3, 2008, 8:15pm UTC](https://www.ruby-forum.com/t/facets-v2-4-1-released/133802 "2008-04-03T20:15:57Z")

</div>

Facets is a single largest collection of core extension methods and standard class additions available for the Ruby programming language. http://facets.rubyforge.org = Release Notes Facets 2.4 is a major step forward…

---

## [Using FileUtils](https://www.ruby-forum.com/t/using-fileutils/133799)

<div class="topic-metadata">

**Author:** [@Sanghyeon\_S](https://www.ruby-forum.com/u/Sanghyeon_S)\
**Replies:** 1\
**Last updated:** [April 3, 2008, 7:45pm UTC](https://www.ruby-forum.com/t/using-fileutils/133799 "2008-04-03T19:45:09Z")

</div>

Let’s use FileUtils (instead of rd /s /q, etc.) as Tor erik Linnerud pointed out. http://rubyforge.org/pipermail/ironruby-core/2008-March/001317.html http://sparcs.kaist.ac.kr/~tinuviel/download/IronRuby/patch-use-fil…

---

## [Make Soap Body tag self closing?](https://www.ruby-forum.com/t/make-soap-body-tag-self-closing/133467)

<div class="topic-metadata">

**Author:** [@jammendolia](https://www.ruby-forum.com/u/jammendolia)\
**Replies:** 5\
**Last updated:** [April 3, 2008, 4:55pm UTC](https://www.ruby-forum.com/t/make-soap-body-tag-self-closing/133467 "2008-04-03T16:55:53Z")

</div>

Hello all, I posted this question last week in the soap4r group but haven’t received any replies. So I’m hoping maybe someone here can help. My situation is this; I 've generated the default/driver/ mappingRegistry u…

---

## [OpenCollab?](https://www.ruby-forum.com/t/opencollab/133788)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [April 3, 2008, 4:43pm UTC](https://www.ruby-forum.com/t/opencollab/133788 "2008-04-03T16:43:59Z")

</div>

Hi, Has anyone ever used OpenCollab as a PM tool? If so, what did you think of it? http://www.opencollab.net Regards, Dan

---

## [RCRchive shutting down](https://www.ruby-forum.com/t/rcrchive-shutting-down/133754)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 1\
**Last updated:** [April 3, 2008, 4:16pm UTC](https://www.ruby-forum.com/t/rcrchive-shutting-down/133754 "2008-04-03T16:16:22Z")

</div>

Hi everyone – With recent shifts in the way language change requests are handled, and future reorganization of the process likely, RCRchive\[1\] has now been shut down for further RCRs. You can still see existing ones …

---

## [Complex$BAH$\_9~$\_(B](https://www.ruby-forum.com/t/complex-bah-9-b/133097)

<div class="topic-metadata">

**Author:** [@Masahiro\_TANAKA](https://www.ruby-forum.com/u/Masahiro_TANAKA)\
**Replies:** 48\
**Last updated:** [April 3, 2008, 3:51pm UTC](https://www.ruby-forum.com/t/complex-bah-9-b/133097 "2008-04-03T15:51:23Z")

</div>

Complexe$B$,AH$9~$$K$J$k$=$&$G$9$,!"$3$l$Oe(Bcomplex.rbe$B$rF’=1$7$F!"e(B (1) e$B\<BIt!&5uIt$H$7$F!"G$0U$N?tCMe(B(e$B\<B?te(B)e$B%\*%V%8%’%/%H$r=jM-$9$kJ#AG?t%/%i%9e(B e$B$H$J$k$h$&$G$9$,!"JL$N\<BAu$H$7$F!"e(B (2) Ce$B$…

---

## [To access row inside a table](https://www.ruby-forum.com/t/to-access-row-inside-a-table/133764)

<div class="topic-metadata">

**Author:** [@pranjal\_jain](https://www.ruby-forum.com/u/pranjal_jain)\
**Replies:** 1\
**Last updated:** [April 3, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/to-access-row-inside-a-table/133764 "2008-04-03T15:31:44Z")

</div>

Hi I am having a doubt regarding the basic ruby. I want to access the row 7 in the table 9 of a web page. If I am trying to access table only I am not facing any problem(i.e) $ie.table(:id =\>"", :index =\>9).flash(20…

---

## [Module\_eval via a wrapper method does not rewrite klass](https://www.ruby-forum.com/t/module-eval-via-a-wrapper-method-does-not-rewrite-klass/133778)

<div class="topic-metadata">

**Author:** [@Yugui](https://www.ruby-forum.com/u/Yugui)\
**Replies:** 0\
**Last updated:** [April 3, 2008, 2:39pm UTC](https://www.ruby-forum.com/t/module-eval-via-a-wrapper-method-does-not-rewrite-klass/133778 "2008-04-03T14:39:13Z")

</div>

Yuguie$B$G$9!#e(B Ruby 1.9のmodule\_evalとブロック付きメソッド呼び出し - Blog by Sadayuki Furuhashi e$B$K=q$+$l$F$$$kLdBj$re(B e$BD4$Y$F$\_$^$7$?!#e(B module\_evale$B$rB\>$N%a%=%C%I$G$/$k$\`$H!"%a%=%C%IDj5A@h$,=q$-49e(B e$B$o$C$F$$$^$;$s…

---

## [WebRI v0.1.0 released](https://www.ruby-forum.com/t/webri-v0-1-0-released/133734)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [April 3, 2008, 2:30pm UTC](https://www.ruby-forum.com/t/webri-v0-1-0-released/133734 "2008-04-03T14:30:07Z")

</div>

WebRI is Webrick-based RI browser. It makes it fairly convenient to browse API documetation in hierachical fashion. http://tigerops.rubyforge.org/webri This is the initial release of WebRI. I threw this together as a…

---

## [Problem creating war file with warbler](https://www.ruby-forum.com/t/problem-creating-war-file-with-warbler/132891)

<div class="topic-metadata">

**Author:** [@thomask](https://www.ruby-forum.com/u/thomask)\
**Replies:** 8\
**Last updated:** [April 3, 2008, 12:53pm UTC](https://www.ruby-forum.com/t/problem-creating-war-file-with-warbler/132891 "2008-04-03T12:53:01Z")

</div>

Hi, we are trying to move from the (deprecated) goldspike rails plugin to the new warbler gem to create a war file from our RoR application, but I cannot get the war file to run. Everything seems to be OK, all needed…

---

## [JRuby on gij](https://www.ruby-forum.com/t/jruby-on-gij/133205)

<div class="topic-metadata">

**Author:** [@Michal\_S](https://www.ruby-forum.com/u/Michal_S)\
**Replies:** 5\
**Last updated:** [April 3, 2008, 12:47pm UTC](https://www.ruby-forum.com/t/jruby-on-gij/133205 "2008-04-03T12:47:41Z")

</div>

Hello, Is JRuby supposed to work with gij? It would be probably slow even if it did but it throws an exception at the very start. $ java --version java version “1.5.0” gij (GNU libgcj) version 4.3.0 20080202 (experi…

---

## [Where can I get serialport docs](https://www.ruby-forum.com/t/where-can-i-get-serialport-docs/133765)

<div class="topic-metadata">

**Author:** [@overthetop](https://www.ruby-forum.com/u/overthetop)\
**Replies:** 1\
**Last updated:** [April 3, 2008, 12:20pm UTC](https://www.ruby-forum.com/t/where-can-i-get-serialport-docs/133765 "2008-04-03T12:20:56Z")

</div>

hi all, Where can I get serialport programming docs especially for win32? I found a lot of articles about programming of serialport under \*nix or cgywin in windows. Is there any way to develop serialport program dire…

---

## [JRuby on OpenVMS works! (slow, though)](https://www.ruby-forum.com/t/jruby-on-openvms-works-slow-though/133698)

<div class="topic-metadata">

**Author:** [@synergism](https://www.ruby-forum.com/u/synergism)\
**Replies:** 4\
**Last updated:** [April 3, 2008, 12:04pm UTC](https://www.ruby-forum.com/t/jruby-on-openvms-works-slow-though/133698 "2008-04-03T12:04:14Z")

</div>

I was pleasantly surprised that JRuby works on OpenVMS. Here’s a discussion I kicked off on the HP ITRC forums about performance concerns: http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=1218567 …

---

## [Using a local variable for method calls](https://www.ruby-forum.com/t/using-a-local-variable-for-method-calls/133725)

<div class="topic-metadata">

**Author:** [@brownerthanu](https://www.ruby-forum.com/u/brownerthanu)\
**Replies:** 4\
**Last updated:** [April 3, 2008, 11:22am UTC](https://www.ruby-forum.com/t/using-a-local-variable-for-method-calls/133725 "2008-04-03T11:22:42Z")

</div>

hello all, first off, thanks for all the help this board/list has offered. it has been fantastic. a workmate of mine and i are puzzling over this problem. here is a bit of pseudo code that represents it: somehash.…

---

## [ArgumentError even if variable is set](https://www.ruby-forum.com/t/argumenterror-even-if-variable-is-set/133747)

<div class="topic-metadata">

**Author:** [@prabhas](https://www.ruby-forum.com/u/prabhas)\
**Replies:** 6\
**Last updated:** [April 3, 2008, 10:05am UTC](https://www.ruby-forum.com/t/argumenterror-even-if-variable-is-set/133747 "2008-04-03T10:05:14Z")

</div>

I am writing an eruby script (rhtml). Depending on value of a particular variable, I display number of input boxes. If that param is not passed, I am setting variable to some value. It works fine for first time. But w…

---

## [Problems with anyType in SOAP4R](https://www.ruby-forum.com/t/problems-with-anytype-in-soap4r/133432)

<div class="topic-metadata">

**Author:** [@linus](https://www.ruby-forum.com/u/linus)\
**Replies:** 1\
**Last updated:** [April 3, 2008, 10:01am UTC](https://www.ruby-forum.com/t/problems-with-anytype-in-soap4r/133432 "2008-04-03T10:01:49Z")

</div>

Hello, I have problem with using this SOAP: require ‘rubygems’ gem ‘soap4r’ require ‘soap/wsdlDriver’ require ‘soap/mapping/encodedregistry’ puts “SOAP::Version = #{SOAP::Version}” soap = SOAP::WSDLDriverFactory.…

---

## [Building Ruby with dtrace on OS X](https://www.ruby-forum.com/t/building-ruby-with-dtrace-on-os-x/133756)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 0\
**Last updated:** [April 3, 2008, 9:35am UTC](https://www.ruby-forum.com/t/building-ruby-with-dtrace-on-os-x/133756 "2008-04-03T09:35:06Z")

</div>

Has anyone built ruby with dtrace support on os x? I haven’t been able to get it working. The only source I’ve found is at joyent (http://svn.joyent.com/opensource/dtrace/ruby/ruby-1.8.6/). When I try to build it i…

---

## [9th April Cape Town Ruby Brigade Meeting](https://www.ruby-forum.com/t/9th-april-cape-town-ruby-brigade-meeting/133755)

<div class="topic-metadata">

**Author:** [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Replies:** 0\
**Last updated:** [April 3, 2008, 9:34am UTC](https://www.ruby-forum.com/t/9th-april-cape-town-ruby-brigade-meeting/133755 "2008-04-03T09:34:33Z")

</div>

The next meeting of the Cape Town Ruby Brigade will take place at: Date: 9th April 2008 Time: 19:00 Venue: Bandwidth Barn, 125 Buitengracht Street, Cape Town Peter Retief will be giving a presentation on using YUI -…

---

## [Passing command line arguments to JRuby script](https://www.ruby-forum.com/t/passing-command-line-arguments-to-jruby-script/133753)

<div class="topic-metadata">

**Author:** [@swati\_sharma](https://www.ruby-forum.com/u/swati_sharma)\
**Replies:** 0\
**Last updated:** [April 3, 2008, 9:20am UTC](https://www.ruby-forum.com/t/passing-command-line-arguments-to-jruby-script/133753 "2008-04-03T09:20:42Z")

</div>

Hi all, Have just started working with JRuby. I am writing this jruby script for the SNMP management of the wireless equipment installed in my campus. The way i have my script has 3 java classes corresponding to the 3…

---

## [Nested ruby](https://www.ruby-forum.com/t/nested-ruby/133750)

<div class="topic-metadata">

**Author:** [@ycsunil](https://www.ruby-forum.com/u/ycsunil)\
**Replies:** 3\
**Last updated:** [April 3, 2008, 9:19am UTC](https://www.ruby-forum.com/t/nested-ruby/133750 "2008-04-03T09:19:42Z")

</div>

Hello All, Take a look at this example: def method1 puts ‘hello’ def method2 puts ‘world’ end end In IRB, if I say ‘method1’ it gives ‘hello’ as output. For ‘method1.method2’ it gives ‘hello’ in first line and ‘…

---

## [Iterators and arrays](https://www.ruby-forum.com/t/iterators-and-arrays/133659)

<div class="topic-metadata">

**Author:** [@owc](https://www.ruby-forum.com/u/owc)\
**Replies:** 3\
**Last updated:** [April 3, 2008, 9:13am UTC](https://www.ruby-forum.com/t/iterators-and-arrays/133659 "2008-04-03T09:13:21Z")

</div>

I want to use each index of the array and loop it in such a way that the path names can be passed into Dir so that i can carry out multiple copies from different sources. unfortunately, it showed error while trying to…

---

## [String 'close-to' comparison](https://www.ruby-forum.com/t/string-close-to-comparison/133742)

<div class="topic-metadata">

**Author:** [@kyleh](https://www.ruby-forum.com/u/kyleh)\
**Replies:** 5\
**Last updated:** [April 3, 2008, 8:15am UTC](https://www.ruby-forum.com/t/string-close-to-comparison/133742 "2008-04-03T08:15:54Z")

</div>

Hello, I have an array. It contains approximately twenty elements which are strings. I also have one string - this string was obtained using an OCR system. One of the strings in the array should ‘match’ the string got…

---

## [Help with ActionMailer setup](https://www.ruby-forum.com/t/help-with-actionmailer-setup/133745)

<div class="topic-metadata">

**Author:** [@rajatgarg](https://www.ruby-forum.com/u/rajatgarg)\
**Replies:** 1\
**Last updated:** [April 3, 2008, 7:51am UTC](https://www.ruby-forum.com/t/help-with-actionmailer-setup/133745 "2008-04-03T07:51:11Z")

</div>

Hi Guys, My server’s email are getting blocked due to CBL because it is failing HELO check. Apparently this can be resolved by configuring ActionMailer properly. There are examples for smtp but not for sendmail. H…

---

## [Real Quick Question](https://www.ruby-forum.com/t/real-quick-question/133712)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 10\
**Last updated:** [April 3, 2008, 7:43am UTC](https://www.ruby-forum.com/t/real-quick-question/133712 "2008-04-03T07:43:13Z")

</div>

Hello, Let’s say I have an array like this: @name\_array = \[“john”, “t.”, “smith”\] how can I get the first and LAST entries? IE:, I don’t want the middle one or any in between. I know I can get the first entry by @na…

---

## [Loading a path](https://www.ruby-forum.com/t/loading-a-path/133705)

<div class="topic-metadata">

**Author:** [@parvg](https://www.ruby-forum.com/u/parvg)\
**Replies:** 3\
**Last updated:** [April 3, 2008, 7:32am UTC](https://www.ruby-forum.com/t/loading-a-path/133705 "2008-04-03T07:32:20Z")

</div>

I’m trying to read/write a text file. code: $LOAD\_PATH \<\< “c:/path/to/resource/folder” file = File.new(‘resources/testResults.txt’, “a”) file.puts results I keep on getting an error: “…in \`initialize’: No such file …

---

## [Revisiting memory/speed of an Array based class](https://www.ruby-forum.com/t/revisiting-memory-speed-of-an-array-based-class/133741)

<div class="topic-metadata">

**Author:** [@bwv549](https://www.ruby-forum.com/u/bwv549)\
**Replies:** 1\
**Last updated:** [April 3, 2008, 6:25am UTC](https://www.ruby-forum.com/t/revisiting-memory-speed-of-an-array-based-class/133741 "2008-04-03T06:25:27Z")

</div>

This posting is a follow up to this thread: http://groups.google.com/group/comp.lang.ruby/browse\_thread/thread/a9dd0d1b466909da/5c2a8a38cac4259f?lnk=gst&q=array+based+class#5c2a8a38cac4259f In case anyone is still inte…

---

## [Confused by 'test'.gsub(/.\*/,'x')](https://www.ruby-forum.com/t/confused-by-test-gsub-x/133710)

<div class="topic-metadata">

**Author:** [@wybodekker](https://www.ruby-forum.com/u/wybodekker)\
**Replies:** 13\
**Last updated:** [April 3, 2008, 5:32am UTC](https://www.ruby-forum.com/t/confused-by-test-gsub-x/133710 "2008-04-03T05:32:45Z")

</div>

Why do I get “xx” instead of “x” in the following: $ irb ‘test’.gsub(/.\*/,‘x’) =\> “xx” and even more confusing (to me): “x\\n”.gsub(/.\*/,‘y’) =\> “yy\\ny” (I expected “y\\n”)

---

## [First use of debugger weird](https://www.ruby-forum.com/t/first-use-of-debugger-weird/132825)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 3\
**Last updated:** [April 3, 2008, 5:05am UTC](https://www.ruby-forum.com/t/first-use-of-debugger-weird/132825 "2008-04-03T05:05:48Z")

</div>

Hi, I just wrote a toy program: K:\_Projects\\Ruby\_Ruby\_Techniques\\Debugging\\Test2.rb I invoked the debugger with: ruby -rdebug K:/\_Projects/Ruby/\_Ruby\_Techniques/Debugging/Test2.rb I got 5 lines (counting blank lines…

---

## [Testing a library, how to auto, autoload](https://www.ruby-forum.com/t/testing-a-library-how-to-auto-autoload/133688)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 2\
**Last updated:** [April 3, 2008, 4:41am UTC](https://www.ruby-forum.com/t/testing-a-library-how-to-auto-autoload/133688 "2008-04-03T04:41:47Z")

</div>

Hi, I’m writing some tests for a library, and don’t want to “require” every single module/class. Anyone know if a quick way to set autoload for all modules/classes for library? Matt

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

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