# Ruby

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

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

---

## [Eval vs. class\_eval](https://www.ruby-forum.com/t/eval-vs-class-eval/128083)

<div class="topic-metadata">

**Author:** [@doncarlosx](https://www.ruby-forum.com/u/doncarlosx)\
**Replies:** 9\
**Last updated:** [February 6, 2008, 5:33am UTC](https://www.ruby-forum.com/t/eval-vs-class-eval/128083 "2008-02-06T05:33:07Z")

</div>

Howdy everyone, Can anyone explain to me why class Fil def self.add\_class name class\_eval “#{name.capitalize} = Class.new(self)” end end behaves differently than class Fil def self.add\_class name eval “#{name.c…

---

## [Feed-normalizer 1.5.0 Released](https://www.ruby-forum.com/t/feed-normalizer-1-5-0-released/128248)

<div class="topic-metadata">

**Author:** [@asinglenet](https://www.ruby-forum.com/u/asinglenet)\
**Replies:** 1\
**Last updated:** [February 6, 2008, 5:18am UTC](https://www.ruby-forum.com/t/feed-normalizer-1-5-0-released/128248 "2008-02-06T05:18:29Z")

</div>

feed-normalizer version 1.5.0 has been released! An extensible Ruby wrapper for Atom and RSS parsers. Feed normalizer wraps various RSS and Atom parsers, and returns a single unified object graph, regardless of the u…

---

## [Would like to learn ruby step by step](https://www.ruby-forum.com/t/would-like-to-learn-ruby-step-by-step/128186)

<div class="topic-metadata">

**Author:** [@jsudhi](https://www.ruby-forum.com/u/jsudhi)\
**Replies:** 3\
**Last updated:** [February 6, 2008, 4:21am UTC](https://www.ruby-forum.com/t/would-like-to-learn-ruby-step-by-step/128186 "2008-02-06T04:21:55Z")

</div>

Hi, Sorry if I am spamming your inbox. Actually since 2 months I have been working with Watir\[Web Application Testing Tool Using Ruby\]. But I am unable to focus on Ruby that much. So please suggest me some ways in w…

---

## [Webby 0.7.3](https://www.ruby-forum.com/t/webby-0-7-3/128228)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 1:05am UTC](https://www.ruby-forum.com/t/webby-0-7-3/128228 "2008-02-06T01:05:06Z")

</div>

== Webby by Tim P. http://webby.rubyforge.org (the “Happy Spork” release) == Description Webby builds websites. It’s not a framework. It’s not a webserver. It’s not a content management system. Webby builds websit…

---

## [Creating a 2d array](https://www.ruby-forum.com/t/creating-a-2d-array/127926)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 8\
**Last updated:** [February 6, 2008, 1:01am UTC](https://www.ruby-forum.com/t/creating-a-2d-array/127926 "2008-02-06T01:01:00Z")

</div>

Hi im just coming to ruby from C albeit after many years of no programming. Im trying the simple matrix problem to get used to dealing with arrays in ruby. How do you create a blank 2d array? I want to ask the user f…

---

## [Rubygems: rollback to prior version](https://www.ruby-forum.com/t/rubygems-rollback-to-prior-version/128208)

<div class="topic-metadata">

**Author:** [@mdaoust](https://www.ruby-forum.com/u/mdaoust)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 9:34pm UTC](https://www.ruby-forum.com/t/rubygems-rollback-to-prior-version/128208 "2008-02-05T21:34:16Z")

</div>

I used to have rubygems 0.9.2 installed on my linux system. I upgraded it using: gem update --system And it seemed to go fine. When I check what version is installed: ~ : … gem -v 1.0.1 To cut a long story short, …

---

## [Re: Extracting vowels and consonants using regular expression](https://www.ruby-forum.com/t/re-extracting-vowels-and-consonants-using-regular-expression/127944)

<div class="topic-metadata">

**Author:** [@dondi](https://www.ruby-forum.com/u/dondi)\
**Replies:** 5\
**Last updated:** [February 5, 2008, 8:56pm UTC](https://www.ruby-forum.com/t/re-extracting-vowels-and-consonants-using-regular-expression/127944 "2008-02-05T20:56:04Z")

</div>

Thanks Robert, Corey, Philip, Stephano, et. al, for all of the great suggestions. However, they all seem to ignore the conditional nature of ‘y’ as a vowel. I would like the regex to treat ‘y’ as a vowel when there is …

---

## [Existing Dll - using Functions from an existing dll](https://www.ruby-forum.com/t/existing-dll-using-functions-from-an-existing-dll/128198)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 8:40pm UTC](https://www.ruby-forum.com/t/existing-dll-using-functions-from-an-existing-dll/128198 "2008-02-05T20:40:46Z")

</div>

I’m trying to create a ruby wrapper around an existing DLL. All i have is the header file and the .dll itself. Can someone point me where I can find an example of how to do this.

---

## [Having problems with my instance variable](https://www.ruby-forum.com/t/having-problems-with-my-instance-variable/128110)

<div class="topic-metadata">

**Author:** [@macaco](https://www.ruby-forum.com/u/macaco)\
**Replies:** 4\
**Last updated:** [February 5, 2008, 8:16pm UTC](https://www.ruby-forum.com/t/having-problems-with-my-instance-variable/128110 "2008-02-05T20:16:34Z")

</div>

I’m sorry if this question seem stupid, but couldn’t find it in the books. I have this code in the models directory: class Figure attr\_reader :xpos, :ypos def initialize @xpos = 0 @ypos = 0 @other = 0 @another …

---

## [Nanoki demo](https://www.ruby-forum.com/t/nanoki-demo/128193)

<div class="topic-metadata">

**Author:** [@Petite\_A](https://www.ruby-forum.com/u/Petite_A)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 7:10pm UTC](https://www.ruby-forum.com/t/nanoki-demo/128193 "2008-02-05T19:10:50Z")

</div>

Hello, A bit off topic, but… for those who likes, hmmm, exoticism, here is a bit of Lua for a change :stuck\_out\_tongue: A demo of Nanoki, a simple wiki engine implemented in Lua, is available online: http://svr225.s…

---

## [Get http page](https://www.ruby-forum.com/t/get-http-page/128175)

<div class="topic-metadata">

**Author:** [@Sylvain\_COURTECUISS](https://www.ruby-forum.com/u/Sylvain_COURTECUISS)\
**Replies:** 2\
**Last updated:** [February 5, 2008, 6:59pm UTC](https://www.ruby-forum.com/t/get-http-page/128175 "2008-02-05T18:59:03Z")

</div>

Hello, Somebody have an example of : a get web page ?Thank’s Sylvain COURTECUISSE GFI Lille Si vous n’etes pas le destinataire designe de ce message ou une personne autorisee a l’utiliser, toute distribution, copie…

---

## [How to get the data from objects in ruby~~please help](https://www.ruby-forum.com/t/how-to-get-the-data-from-objects-in-ruby-please-help/128188)

<div class="topic-metadata">

**Author:** [@sim9739](https://www.ruby-forum.com/u/sim9739)\
**Replies:** 1\
**Last updated:** [February 5, 2008, 6:46pm UTC](https://www.ruby-forum.com/t/how-to-get-the-data-from-objects-in-ruby-please-help/128188 "2008-02-05T18:46:11Z")

</div>

Hi all, I have a web service that will return a BookArray when getBooks method is called. The web service is in java. something like this–\> public BookArray getBooks(){…} BookArray,toString() will return all the boo…

---

## [SOAP, enumeration + token, and error in base2soap](https://www.ruby-forum.com/t/soap-enumeration-token-and-error-in-base2soap/128115)

<div class="topic-metadata">

**Author:** [@asmo](https://www.ruby-forum.com/u/asmo)\
**Replies:** 2\
**Last updated:** [February 5, 2008, 5:55pm UTC](https://www.ruby-forum.com/t/soap-enumeration-token-and-error-in-base2soap/128115 "2008-02-05T17:55:50Z")

</div>

Hi I have soap server that has WSDL with request containing \<xsd:element name=“mode” type=“ons:ModeT” /\> where ModeT is defined as \<xsd:simpleType name="ModeT"\> \<xsd:restriction base="xsd:token"\> …

---

## [Hash#flatten flattens recursively](https://www.ruby-forum.com/t/hash-flatten-flattens-recursively/128160)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 1\
**Last updated:** [February 5, 2008, 5:45pm UTC](https://www.ruby-forum.com/t/hash-flatten-flattens-recursively/128160 "2008-02-05T17:45:07Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B Hash#flatten e$B$N%3%a%s%H$rFI$\`$H!"$3$N%a%=%C%I$O%G%U%)%k%H$G$Oe(B e$B:F5"E\*$Ke(B flatten e$B$7$J$$$H=q$$$F$"$k$N$G$9$,!"\<B:\]$K$O$9$k$h$&$G$9!#e(B y$ ./ruby -ve ‘p({1 =\> “one”, 2 =\> \[2,“two”\],…

---

## [String scanning woes :(](https://www.ruby-forum.com/t/string-scanning-woes/128102)

<div class="topic-metadata">

**Author:** [@lmcilwain](https://www.ruby-forum.com/u/lmcilwain)\
**Replies:** 10\
**Last updated:** [February 5, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/string-scanning-woes/128102 "2008-02-05T17:40:55Z")

</div>

Hello all, I am trying to get a file into an array using .scan and I can’t seem to get anything to work properly. I am reading in a file of email addresses (1 per line) and it all seems to come in as 1 long string so…

---

## [New way to search by attribute value in REXML on ruby 1.8.6?](https://www.ruby-forum.com/t/new-way-to-search-by-attribute-value-in-rexml-on-ruby-1-8-6/128161)

<div class="topic-metadata">

**Author:** [@ayqazi](https://www.ruby-forum.com/u/ayqazi)\
**Replies:** 1\
**Last updated:** [February 5, 2008, 5:01pm UTC](https://www.ruby-forum.com/t/new-way-to-search-by-attribute-value-in-rexml-on-ruby-1-8-6/128161 "2008-02-05T17:01:53Z")

</div>

Hi, I’ve been previously using things like: stuff = infdata.elements\[“domain:contact\[@type=‘admin’\]”\].text quite heavily. Upgrading to ruby 1.8.6 make this return a blank string. I’m using Gentoo’s ruby ebuild, whic…

---

## [Got any good string exercises?](https://www.ruby-forum.com/t/got-any-good-string-exercises/128158)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 7\
**Last updated:** [February 5, 2008, 4:45pm UTC](https://www.ruby-forum.com/t/got-any-good-string-exercises/128158 "2008-02-05T16:45:22Z")

</div>

Looking for fairly simple string exercises that will familiarise myself with all those string methods in the back of pickaxe. Dont want major exercises like those in the ruby quiz as they demand knowledge in a lot of …

---

## [Handling data in games done in Ruby](https://www.ruby-forum.com/t/handling-data-in-games-done-in-ruby/128126)

<div class="topic-metadata">

**Author:** [@nefigah](https://www.ruby-forum.com/u/nefigah)\
**Replies:** 2\
**Last updated:** [February 5, 2008, 3:08pm UTC](https://www.ruby-forum.com/t/handling-data-in-games-done-in-ruby/128126 "2008-02-05T15:08:17Z")

</div>

For those of you who write games in Ruby, what is your preferred method of accessing data? Dialog, monster stats, what have you. I’m doing a final fantasy clone as a little learning project and I’m curious. I suppose…

---

## [Uconv alternative to iconv](https://www.ruby-forum.com/t/uconv-alternative-to-iconv/128165)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 2:34pm UTC](https://www.ruby-forum.com/t/uconv-alternative-to-iconv/128165 "2008-02-05T14:34:46Z")

</div>

There is a much more complete character set translation library available here: The download to the files is on that page. But for convenience here it is: There is a Ruby wrapper for the library here: https://ru…

---

## [Invoke .NET objects from Ruby](https://www.ruby-forum.com/t/invoke-net-objects-from-ruby/128124)

<div class="topic-metadata">

**Author:** [@Bill\_Atkins](https://www.ruby-forum.com/u/Bill_Atkins)\
**Replies:** 7\
**Last updated:** [February 5, 2008, 1:20pm UTC](https://www.ruby-forum.com/t/invoke-net-objects-from-ruby/128124 "2008-02-05T13:20:57Z")

</div>

I have a DLL assembly containing some classes I wrote in C#, and I’d like to be able to use these objects from a Ruby script (not from a .NET Ruby implementation, but from plain old MRI). Is this possible?

---

## [ANN: Sequel 1.1 Released](https://www.ruby-forum.com/t/ann-sequel-1-1-released/128154)

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/ann-sequel-1-1-released/128154 "2008-02-05T13:06:41Z")

</div>

Sequel version 1.1 has just been released. Sequel is a lightweight database access and ORM library for Ruby. Sequel provides thread safety, connection pooling and a simple and expressive API for constructing database …

---

## [Ruby syntax question](https://www.ruby-forum.com/t/ruby-syntax-question/128085)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [February 5, 2008, 1:00pm UTC](https://www.ruby-forum.com/t/ruby-syntax-question/128085 "2008-02-05T13:00:44Z")

</div>

Hi, While debugging some ruby-code, I found a mis-typed construct like the following, which looks like a syntax error to me, but when you run it in irb it evaluates to nil and does NOT raise an error: x = def puts…

---

## [Adding extra fields to request headers](https://www.ruby-forum.com/t/adding-extra-fields-to-request-headers/128118)

<div class="topic-metadata">

**Author:** [@pradeepta](https://www.ruby-forum.com/u/pradeepta)\
**Replies:** 3\
**Last updated:** [February 5, 2008, 10:21am UTC](https://www.ruby-forum.com/t/adding-extra-fields-to-request-headers/128118 "2008-02-05T10:21:06Z")

</div>

how can i add extra fields to request headers ?

---

## [Webby, Gems and Paths](https://www.ruby-forum.com/t/webby-gems-and-paths/128089)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 4\
**Last updated:** [February 5, 2008, 9:30am UTC](https://www.ruby-forum.com/t/webby-gems-and-paths/128089 "2008-02-05T09:30:42Z")

</div>

I am running an Ubuntu box, and it seems that whenever I “gem install” something with an executable (eg. /var/lib/gems/1.8/gems/webby-0.7.2/bin/webby) I have to make a link to it in /usr/local and set the +x flag be…

---

## [Help - multithreading, systemcall](https://www.ruby-forum.com/t/help-multithreading-systemcall/128021)

<div class="topic-metadata">

**Author:** [@rubist](https://www.ruby-forum.com/u/rubist)\
**Replies:** 3\
**Last updated:** [February 5, 2008, 8:49am UTC](https://www.ruby-forum.com/t/help-multithreading-systemcall/128021 "2008-02-05T08:49:23Z")

</div>

Hi All, I am newbie to ruby, I have one doubt pertaining to system call and starting my server. I use the system call --\> system(“D:\\ruby\\bin\\selenium.cmd”) This starts a server followed by which i would be calling a…

---

## [\[ANN\] Rumai 2.0.0](https://www.ruby-forum.com/t/ann-rumai-2-0-0/128125)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 7:30am UTC](https://www.ruby-forum.com/t/ann-rumai-2-0-0/128125 "2008-02-05T07:30:32Z")

</div>

Rumai Rumai is a library for manipulating the wmii window manager through Ruby. It excels at dynamic arrangement of clients, columns, views, and tags. Rumai also provides (1) an interactive shell…

---

## [Philly Emerging Technologies for the Enterprise Conference, March 26-27: Registration is Open](https://www.ruby-forum.com/t/philly-emerging-technologies-for-the-enterprise-conference-march-26-27-registration-is-open/128109)

<div class="topic-metadata">

**Author:** [@Andrea\_oSkSW](https://www.ruby-forum.com/u/Andrea_oSkSW)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 5:48am UTC](https://www.ruby-forum.com/t/philly-emerging-technologies-for-the-enterprise-conference-march-26-27-registration-is-open/128109 "2008-02-05T05:48:13Z")

</div>

Registration is open for the Emerging Technologies for the Enterprise Conference, which is set for March 26th and 27th in Philadelphia: While a wide variety of technologies and techniques will be represented, there …

---

## [Treetop problem](https://www.ruby-forum.com/t/treetop-problem/128092)

<div class="topic-metadata">

**Author:** [@kreatix](https://www.ruby-forum.com/u/kreatix)\
**Replies:** 4\
**Last updated:** [February 5, 2008, 5:25am UTC](https://www.ruby-forum.com/t/treetop-problem/128092 "2008-02-05T05:25:58Z")

</div>

Hello everyone, I’ve run into a problem with Treetop: http://pastie.caboo.se/147490 It seems to appear when the first character of the string parsed is a valid match for both rules, and Treetop is unable to resolve t…

---

## [\[ANN\] Gerbil 2.0.0](https://www.ruby-forum.com/t/ann-gerbil-2-0-0/128009)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 1\
**Last updated:** [February 5, 2008, 4:29am UTC](https://www.ruby-forum.com/t/ann-gerbil-2-0-0/128009 "2008-02-05T04:29:33Z")

</div>

Gerbil Gerbil is an extensible document generator based on eRuby that outputs to any format you want: plain text, HTML, LaTeX, UNIX man page, your own custom format, and so on. http://gerb…

---

## [How to handle java script pop ups?](https://www.ruby-forum.com/t/how-to-handle-java-script-pop-ups/128029)

<div class="topic-metadata">

**Author:** [@pradeepta](https://www.ruby-forum.com/u/pradeepta)\
**Replies:** 3\
**Last updated:** [February 5, 2008, 3:47am UTC](https://www.ruby-forum.com/t/how-to-handle-java-script-pop-ups/128029 "2008-02-05T03:47:22Z")

</div>

How can I access java script pop ups using ruby ? I want to access the alert message as well as click the button of pop up boxes . How can I do that ? Anybody help ??

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

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