# Ruby

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

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

---

## [Sudo gem install -r webrick FAILED](https://www.ruby-forum.com/t/sudo-gem-install-r-webrick-failed/73098)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [October 23, 2006, 7:43pm UTC](https://www.ruby-forum.com/t/sudo-gem-install-r-webrick-failed/73098 "2006-10-23T19:43:41Z")

</div>

after a : ~%\> sudo gem install -r webrick i got : ERROR: While executing gem … (NoMethodError) undefined method \`each’ for #Object:0x6a3d80 a workaround ? (gem version is 0.9.0 and ruby one is ruby 1.8.5 (2006-08-…

---

## [RingyDingy 1.1.0 Released](https://www.ruby-forum.com/t/ringydingy-1-1-0-released/73315)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [October 23, 2006, 7:43pm UTC](https://www.ruby-forum.com/t/ringydingy-1-1-0-released/73315 "2006-10-23T19:43:40Z")

</div>

RingyDingy version 1.1.0 has been released! http://seattlerb.rubyforge.org/RingyDingy RingyDingy automatically re-registers your DRb service with a RingServer should communication with the RingServer stop. Changes: …

---

## [Re: How to remove empty element in an array](https://www.ruby-forum.com/t/re-how-to-remove-empty-element-in-an-array/73313)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [October 23, 2006, 7:37pm UTC](https://www.ruby-forum.com/t/re-how-to-remove-empty-element-in-an-array/73313 "2006-10-23T19:37:36Z")

</div>

From: Li Chen I have an array of \[1,2,’’\] I want change it to \[1,2\]. irb(main):001:0\> a = \[1,2,’’\] =\> \[1, 2, “”\] irb(main):002:0\> a.delete( ‘’ ) =\> “” irb(main):003:0\> a =\> \[1, 2\]

---

## [$stdin.gets, threads, and command-line app](https://www.ruby-forum.com/t/stdin-gets-threads-and-command-line-app/73289)

<div class="topic-metadata">

**Author:** [@xav](https://www.ruby-forum.com/u/xav)\
**Replies:** 4\
**Last updated:** [October 23, 2006, 6:43pm UTC](https://www.ruby-forum.com/t/stdin-gets-threads-and-command-line-app/73289 "2006-10-23T18:43:00Z")

</div>

Hi, I am currently working on a console-based app, in which the user interacts by entering commands from within a prompt (e.g. sort of a bash-like app). One thread for the prompt, some others for computation. I allo…

---

## [Newbie: class attribute accessors?](https://www.ruby-forum.com/t/newbie-class-attribute-accessors/73259)

<div class="topic-metadata">

**Author:** [@diego\_v](https://www.ruby-forum.com/u/diego_v)\
**Replies:** 7\
**Last updated:** [October 23, 2006, 6:39pm UTC](https://www.ruby-forum.com/t/newbie-class-attribute-accessors/73259 "2006-10-23T18:39:53Z")

</div>

Hello, I was wondering if it is possible to get the automatically generated accessors (attr\_accessor, etc…) for class attributes. From what I found on the internet, it seems that the usual syntax wouldn’t work. Thank…

---

## [Ruby Conf 2006 Denver feedback?](https://www.ruby-forum.com/t/ruby-conf-2006-denver-feedback/73263)

<div class="topic-metadata">

**Author:** [@Hiren\_B](https://www.ruby-forum.com/u/Hiren_B)\
**Replies:** 5\
**Last updated:** [October 23, 2006, 5:37pm UTC](https://www.ruby-forum.com/t/ruby-conf-2006-denver-feedback/73263 "2006-10-23T17:37:28Z")

</div>

Hi Are there any blogs / feedback on the recent ruby conference? Regards Hiren B

---

## [UtahValley.rb meeting thie Tuesday](https://www.ruby-forum.com/t/utahvalley-rb-meeting-thie-tuesday/73299)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [October 23, 2006, 5:33pm UTC](https://www.ruby-forum.com/t/utahvalley-rb-meeting-thie-tuesday/73299 "2006-10-23T17:33:27Z")

</div>

Tuesday October 24th at 7PM the UtahValley.rb will be meeting in room 120 of the TMCB on BYU Campus (maps.byu.edu building 80) There were a lot of URUGers at RubyConf 2006, and this meeting will be a review of what w…

---

## [Creating objects type only known at runtime](https://www.ruby-forum.com/t/creating-objects-type-only-known-at-runtime/73278)

<div class="topic-metadata">

**Author:** [@bizzz](https://www.ruby-forum.com/u/bizzz)\
**Replies:** 2\
**Last updated:** [October 23, 2006, 4:16pm UTC](https://www.ruby-forum.com/t/creating-objects-type-only-known-at-runtime/73278 "2006-10-23T16:16:57Z")

</div>

This weekend I was playing around with some ruby and wanted to create objects whose types were only known at runtime. The method I wound up using was o = eval “#{class\_name}.new” Is this a preferred method. I come f…

---

## [A Comparison Of Dynamic and Static Languiges](https://www.ruby-forum.com/t/a-comparison-of-dynamic-and-static-languiges/73129)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 12\
**Last updated:** [October 23, 2006, 3:36pm UTC](https://www.ruby-forum.com/t/a-comparison-of-dynamic-and-static-languiges/73129 "2006-10-23T15:36:45Z")

</div>

I’m doing a report on the speed of develipment and executionin varius programing langiuiges. write code for all these tasks in the languige of your choise if intrestied send code to removed\_email\_address@domain.invalid…

---

## [Rubybugs updated](https://www.ruby-forum.com/t/rubybugs-updated/73257)

<div class="topic-metadata">

**Author:** [@URABE\_Shyouhei](https://www.ruby-forum.com/u/URABE_Shyouhei)\
**Replies:** 4\
**Last updated:** [October 23, 2006, 12:54pm UTC](https://www.ruby-forum.com/t/rubybugs-updated/73257 "2006-10-23T12:54:19Z")

</div>

e$BK\\7o$O$\_$J$5$^$K$b4X78$9$k$N$G!“e(BMLe$B$K$F%”%J%&%s%9$7$^$9!#e(B e$B:#F|e(B(e$B%“%a%j%+CfIt2F;~4V$Ge(B)e$B!”$^$D$b$H$5$s$HOC$79g$C$F!"%P%0%H%i%C%+!\<$Ke(B e$B!Ve(Bunvelifiede$B!W$H$$$&\>uBV$rDI2C$7$^$7$?!#e(B http:/…

---

## [Tk Layout help please](https://www.ruby-forum.com/t/tk-layout-help-please/73202)

<div class="topic-metadata">

**Author:** [@mohammad](https://www.ruby-forum.com/u/mohammad)\
**Replies:** 2\
**Last updated:** [October 23, 2006, 12:18pm UTC](https://www.ruby-forum.com/t/tk-layout-help-please/73202 "2006-10-23T12:18:43Z")

</div>

okay this is an example of what I want it to look like: I want to be able to have them edit items and their prices, it saves it into another txt file for another program, so I want them to be able to edit the items a…

---

## [Enumerable#each\_\* and Enumerable#enum\_\* on 1.9](https://www.ruby-forum.com/t/enumerable-each-and-enumerable-enum-on-1-9/64500)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 8\
**Last updated:** [October 23, 2006, 10:23am UTC](https://www.ruby-forum.com/t/enumerable-each-and-enumerable-enum-on-1-9/64500 "2006-10-23T10:23:53Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B e$B$A$g$C$He(B1.9e$B$Ne(BEnumerablee$B$GM7$s$G$$$F5$IU$$$?$N$G$9$,!"e(B1.9e$B$G$Oe(B e$B%V%m%C%/$rH\<$o$J$$%$%F%l!\<%?8F$S=P$7%a%=%C%I8F$S=P$7e(B(e$B2?$r8@$Ce(B e$B$F$k$N…

---

## [Hoe 1.1.2 Released](https://www.ruby-forum.com/t/hoe-1-1-2-released/73197)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 4\
**Last updated:** [October 23, 2006, 10:01am UTC](https://www.ruby-forum.com/t/hoe-1-1-2-released/73197 "2006-10-23T10:01:01Z")

</div>

hoe version 1.1.2 has been released! http://rubyforge.org/projects/seattlerb/ http://seattlerb.rubyforge.org/hoe/ removed\_email\_address@domain.invalid Hoe is a simple rake/rubygems helper for project Rakefiles. It g…

---

## [Etc.dir, Etc.name](https://www.ruby-forum.com/t/etc-dir-etc-name/72970)

<div class="topic-metadata">

**Author:** [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Replies:** 2\
**Last updated:** [October 23, 2006, 9:06am UTC](https://www.ruby-forum.com/t/etc-dir-etc-name/72970 "2006-10-23T09:06:58Z")

</div>

I found some of the Etc functions missing which are mentioned in Matsumoto’s book “Ruby in a nutshell”, for example Etc.dir and Etc.shell. OTOH, Etc.name exists (for example): irb(main):002:0\> Etc.dir NoMethodError: …

---

## [Find out the time used for searching a file](https://www.ruby-forum.com/t/find-out-the-time-used-for-searching-a-file/73237)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 2\
**Last updated:** [October 23, 2006, 8:00am UTC](https://www.ruby-forum.com/t/find-out-the-time-used-for-searching-a-file/73237 "2006-10-23T08:00:49Z")

</div>

Hi all, When I run a script to search some files in a folder and/or its children folders I want know how long it takes when the search is done. Is there any such method available in Ruby ? Thanks, Li

---

## [Method for submitting an updated Gem?](https://www.ruby-forum.com/t/method-for-submitting-an-updated-gem/73226)

<div class="topic-metadata">

**Author:** [@Clifford\_H](https://www.ruby-forum.com/u/Clifford_H)\
**Replies:** 0\
**Last updated:** [October 23, 2006, 3:25am UTC](https://www.ruby-forum.com/t/method-for-submitting-an-updated-gem/73226 "2006-10-23T03:25:56Z")

</div>

I’ve mailed Chad F. twice with an updated GeoIP gem, but I’ve had no response. What’s the proper method for submitting gems? Last time I just emailed it to Chad and he posted it… Clifford H…

---

## [Calling a Java Class](https://www.ruby-forum.com/t/calling-a-java-class/72955)

<div class="topic-metadata">

**Author:** [@ike](https://www.ruby-forum.com/u/ike)\
**Replies:** 10\
**Last updated:** [October 23, 2006, 2:41am UTC](https://www.ruby-forum.com/t/calling-a-java-class/72955 "2006-10-23T02:41:53Z")

</div>

Is there a way to invoke a Java class, from within Ruby, without using, say JRuby? I am looking at getting very involved in JRuby, but just want to check if there isn;t some alternative means within Ruby itself for do…

---

## [Ruby-ize me (or at least my code)](https://www.ruby-forum.com/t/ruby-ize-me-or-at-least-my-code/73214)

<div class="topic-metadata">

**Author:** [@seth](https://www.ruby-forum.com/u/seth)\
**Replies:** 7\
**Last updated:** [October 23, 2006, 2:41am UTC](https://www.ruby-forum.com/t/ruby-ize-me-or-at-least-my-code/73214 "2006-10-23T02:41:34Z")

</div>

Hi all, I am new to Ruby but find it interesting. To teach myself the language I wrote a simple linked list implementation. It works just fine, but I suspect that my “Java is showing” and that the same logic can be …

---

## [Conditional modifier syntax](https://www.ruby-forum.com/t/conditional-modifier-syntax/73140)

<div class="topic-metadata">

**Author:** [@Pau\_Garcia\_i\_Quiles](https://www.ruby-forum.com/u/Pau_Garcia_i_Quiles)\
**Replies:** 2\
**Last updated:** [October 23, 2006, 2:13am UTC](https://www.ruby-forum.com/t/conditional-modifier-syntax/73140 "2006-10-23T02:13:47Z")

</div>

Hello, Am I the only one who finds beautiful this syntax for conditional modifiers? @playlist= source\[:playlist\] if source\[:playlist\].instance\_of?(XSPF::Playlist) else raise TypeError “The playlist must be an instan…

---

## ["Gtk::Window#show" notation](https://www.ruby-forum.com/t/gtk-window-show-notation/73215)

<div class="topic-metadata">

**Author:** [@robertpostill](https://www.ruby-forum.com/u/robertpostill)\
**Replies:** 3\
**Last updated:** [October 23, 2006, 2:01am UTC](https://www.ruby-forum.com/t/gtk-window-show-notation/73215 "2006-10-23T02:01:46Z")

</div>

I am reading the tutorial in Ruby-gnome2 and I see: “The third line calls Gtk::Window#show to display the window we just created:” to describe: “window.show” Please excuse my ignorance, but I do not know the use of …

---

## [InlineFortran 1.0.0 Released](https://www.ruby-forum.com/t/inlinefortran-1-0-0-released/73195)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 3\
**Last updated:** [October 23, 2006, 1:55am UTC](https://www.ruby-forum.com/t/inlinefortran-1-0-0-released/73195 "2006-10-23T01:55:45Z")

</div>

InlineFortran version 1.0.0 has been released! http://www.rubyforge.org/projects/rubyinline == FEATURES/PROBLEMS: Very rudimentary right now. Needs some love. == SYNOPSYS: inline :Fortran do |builder| builder.s…

---

## [Full screen mode toolkit?](https://www.ruby-forum.com/t/full-screen-mode-toolkit/73198)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 1\
**Last updated:** [October 23, 2006, 1:53am UTC](https://www.ruby-forum.com/t/full-screen-mode-toolkit/73198 "2006-10-23T01:53:45Z")

</div>

Question: do any of the gui toolkits that ruby works with allow you to enter ‘full screen’ mode? Thank you, Michael

---

## [What is wrong with my code](https://www.ruby-forum.com/t/what-is-wrong-with-my-code/73146)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 8\
**Last updated:** [October 22, 2006, 11:16pm UTC](https://www.ruby-forum.com/t/what-is-wrong-with-my-code/73146 "2006-10-22T23:16:44Z")

</div>

Hi folks, I write two srcipts to check files in a given directory. Version 1 uses regular expression and works but I cann’t find the size for each file. Version 2 uses Ruby built-in File.file? method but it doesn’t …

---

## [How to test if a module/gem is installed](https://www.ruby-forum.com/t/how-to-test-if-a-module-gem-is-installed/73138)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 5\
**Last updated:** [October 22, 2006, 10:19pm UTC](https://www.ruby-forum.com/t/how-to-test-if-a-module-gem-is-installed/73138 "2006-10-22T22:19:10Z")

</div>

Is there a way to test if a particular module/extension/gem is installed on the system ruby is running on? Chris

---

## [\[\]= with moredimensional Arrays](https://www.ruby-forum.com/t/with-moredimensional-arrays/73194)

<div class="topic-metadata">

**Author:** [@naPOLeon](https://www.ruby-forum.com/u/naPOLeon)\
**Replies:** 4\
**Last updated:** [October 22, 2006, 9:22pm UTC](https://www.ruby-forum.com/t/with-moredimensional-arrays/73194 "2006-10-22T21:22:57Z")

</div>

Hi all, I want to code the “game of life” in ruby. I use a moredimensional array as the field and another one to provide an easy way to input the pattern of the start-population. (See the code below) So my question i…

---

## [Build failed on osx](https://www.ruby-forum.com/t/build-failed-on-osx/67354)

<div class="topic-metadata">

**Author:** [@Masatoshi\_SEKI](https://www.ruby-forum.com/u/Masatoshi_SEKI)\
**Replies:** 7\
**Last updated:** [October 22, 2006, 9:00pm UTC](https://www.ruby-forum.com/t/build-failed-on-osx/67354 "2006-10-22T21:00:56Z")

</div>

e$B31$H$$$$$^$9!#e(B OSXe$B\>e$Ge(BCVS HEADe$B$Ne(Bruby(1.9e$B7Oe(B)e$B$N%S%k%I$K\<:GT$7$F:$$C$F$$$^$9!#e(B e$B%3%s%Q%$%k$,$G$-$J$$$N$G$J$/$F!“e(BMakefilee$B$K$J$K$+LdBj$,$”$k$h$&$J5$$,$7$^$9!#e(B $ make gcc -g -O2 -p…

---

## [Search file in a directory](https://www.ruby-forum.com/t/search-file-in-a-directory/73131)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 10\
**Last updated:** [October 22, 2006, 8:26pm UTC](https://www.ruby-forum.com/t/search-file-in-a-directory/73131 "2006-10-22T20:26:29Z")

</div>

Hi folks, Which built-in method is used to search a file in a directory and all its children directory? Thanks, Li

---

## [One question about REXML?](https://www.ruby-forum.com/t/one-question-about-rexml/73180)

<div class="topic-metadata">

**Author:** [@josegalvan](https://www.ruby-forum.com/u/josegalvan)\
**Replies:** 2\
**Last updated:** [October 22, 2006, 7:06pm UTC](https://www.ruby-forum.com/t/one-question-about-rexml/73180 "2006-10-22T19:06:10Z")

</div>

Is REXML a validating parser?

---

## [Pipe shell output to ruby -e?](https://www.ruby-forum.com/t/pipe-shell-output-to-ruby-e/73160)

<div class="topic-metadata">

**Author:** [@d0t1q](https://www.ruby-forum.com/u/d0t1q)\
**Replies:** 3\
**Last updated:** [October 22, 2006, 3:10pm UTC](https://www.ruby-forum.com/t/pipe-shell-output-to-ruby-e/73160 "2006-10-22T15:10:44Z")

</div>

I know this has been done before but search yields nothing :-\\ Just wondering how you can pipe output to ruby -e? I tried this but it doesnt work :frowning: borked echo “hello” |ruby -e ‘puts ARGV.to\_s’ Thanks for a…

---

## [Rubygems only runs as root](https://www.ruby-forum.com/t/rubygems-only-runs-as-root/73161)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [October 22, 2006, 2:02pm UTC](https://www.ruby-forum.com/t/rubygems-only-runs-as-root/73161 "2006-10-22T14:02:36Z")

</div>

Loaded the lastest rubygems (0.9.0) as root, like always, but in my USER account I can’t see it anymore. I have no problem doing this on my laptop. The only difference is I’m using ruby 1.8.5 in my USER account, whi…

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

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