# Ruby

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

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

---

## [Cookbook example in InstantRails](https://www.ruby-forum.com/t/cookbook-example-in-instantrails/98255)

<div class="topic-metadata">

**Author:** [@ike](https://www.ruby-forum.com/u/ike)\
**Replies:** 6\
**Last updated:** [July 13, 2006, 9:21pm UTC](https://www.ruby-forum.com/t/cookbook-example-in-instantrails/98255 "2006-07-13T21:21:00Z")

</div>

I’m trying to follow along with the code in the cookbook example provided in InstantRails. I can look at the php db structure through phpMyAdmin, but I cannot seem to find the .rb code that really does anything in th…

---

## [Shopping cart](https://www.ruby-forum.com/t/shopping-cart/98112)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [July 13, 2006, 8:44pm UTC](https://www.ruby-forum.com/t/shopping-cart/98112 "2006-07-13T20:44:13Z")

</div>

hello ! we are looking for one shopping cart in ROR (ruby on ralis) can any one help us to get one ready made shopping cart from where we can start and begin the things to achive our final requirement in good manner …

---

## [One class per test file (was --fqname option to test/unit/au](https://www.ruby-forum.com/t/one-class-per-test-file-was-fqname-option-to-test-unit-au/98312)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [July 13, 2006, 8:40pm UTC](https://www.ruby-forum.com/t/one-class-per-test-file-was-fqname-option-to-test-unit-au/98312 "2006-07-13T20:40:52Z")

</div>

(Moved to ruby-talk from ruby-core since we’re on a more general topic) Could you expand on why? I would say granularity, maintenance and mental clarity. By granularity, I mean the tests as a whole that are defined …

---

## [Def m() yield end; m(&lambda {})](https://www.ruby-forum.com/t/def-m-yield-end-m-lambda/98308)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [July 13, 2006, 7:43pm UTC](https://www.ruby-forum.com/t/def-m-yield-end-m-lambda/98308 "2006-07-13T19:43:05Z")

</div>

\[ruby-dev:29022\] e$B$N%9%/%j%W%H$,4V0c$C$F$$$F!":n$j$J$\*$7$F!“e(B e$BLVMe@-$r$”$2$F$$$?$H$3$m!"e(Bcore e$B$rEG$/%1!\<%9$,=P$F$-$^$7$?!#e(B % ./ruby -ve ‘def m() yield end; m(&lambda {})’ ruby 1.9.0 (2006-07-14) \[i686-l…

---

## [Rdoc and constructs like DL::Import's extern](https://www.ruby-forum.com/t/rdoc-and-constructs-like-dl-imports-extern/98196)

<div class="topic-metadata">

**Author:** [@sevensoft](https://www.ruby-forum.com/u/sevensoft)\
**Replies:** 2\
**Last updated:** [July 13, 2006, 7:36pm UTC](https://www.ruby-forum.com/t/rdoc-and-constructs-like-dl-imports-extern/98196 "2006-07-13T19:36:40Z")

</div>

I’m wrapping a C library (link-grammar, to be specific) in an object-oriented ruby interface using DL::Import. The library is a very well designed object-oriented C library, which is to say it uses very consistent nam…

---

## [Setting up Ruby libraries](https://www.ruby-forum.com/t/setting-up-ruby-libraries/98206)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 2\
**Last updated:** [July 13, 2006, 7:05pm UTC](https://www.ruby-forum.com/t/setting-up-ruby-libraries/98206 "2006-07-13T19:05:26Z")

</div>

In my group, we typically set up software dependencies like this: /libraries /gtk /2.4.11 /rhel3 /usr/ /bin/ /share /lib /irix # etc /gcc /3.3.1 /bin #etc So, we have libraries and utilities that we depend…

---

## [Panagrams (#86)](https://www.ruby-forum.com/t/panagrams-86/98266)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 2\
**Last updated:** [July 13, 2006, 6:27pm UTC](https://www.ruby-forum.com/t/panagrams-86/98266 "2006-07-13T18:27:01Z")

</div>

First, let me clear up the naming issue, since I missed it when created the quiz. The actual term for sentences that contain all the letters of the alphabet is pangram (or Swallowsgram) as discussed in the linked ar…

---

## [Re: Negative Numbers](https://www.ruby-forum.com/t/re-negative-numbers/98297)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [July 13, 2006, 6:23pm UTC](https://www.ruby-forum.com/t/re-negative-numbers/98297 "2006-07-13T18:23:24Z")

</div>

I’m just getting started with Ruby and was wondering if there is a way to translate negative numbers into their positive equals. i.e turning -7 into 7. Thanks for any help. Use the .abs method irb(main):001:0\> -…

---

## [Re: Gateway Test](https://www.ruby-forum.com/t/re-gateway-test/98295)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [July 13, 2006, 6:20pm UTC](https://www.ruby-forum.com/t/re-gateway-test/98295 "2006-07-13T18:20:00Z")

</div>

\-----Original Message----- From: James Edward G. II \[mailto:removed\_email\_address@domain.invalid\] Sent: Thursday, July 13, 2006 9:59 AM To: ruby-talk ML Subject: Gateway Test Is something up? I noticed that most…

---

## [Application Map and Navigation\\Utility methods](https://www.ruby-forum.com/t/application-map-and-navigation-utility-methods/98292)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 0\
**Last updated:** [July 13, 2006, 6:03pm UTC](https://www.ruby-forum.com/t/application-map-and-navigation-utility-methods/98292 "2006-07-13T18:03:29Z")

</div>

Hi, I have an ObjectMap Class class ObjectMap #login def login;$ie.link(:text, ‘Log in’);end def user\_name;$ie.text\_field(:name, /userid/);end def password;$ie.text\_field(:name, /password/);end end I have navigat…

---

## [Gateway Test](https://www.ruby-forum.com/t/gateway-test/98291)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [July 13, 2006, 6:00pm UTC](https://www.ruby-forum.com/t/gateway-test/98291 "2006-07-13T18:00:18Z")

</div>

Please ignore. James Edward G. II

---

## [Attributes-3.0.0](https://www.ruby-forum.com/t/attributes-3-0-0/98284)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 13, 2006, 5:37pm UTC](https://www.ruby-forum.com/t/attributes-3-0-0/98284 "2006-07-13T17:37:31Z")

</div>

NAME attributes.rb URIS http://rubyforge.org/projects/codeforpeople/ http://codeforpeople.com/lib/ruby SYNOPSIS attributes.rb provides an attr\_\* like method will several user friendly additions. attributes.rb is…

---

## [Killing off a process tree](https://www.ruby-forum.com/t/killing-off-a-process-tree/98012)

<div class="topic-metadata">

**Author:** [@Erich\_L](https://www.ruby-forum.com/u/Erich_L)\
**Replies:** 9\
**Last updated:** [July 13, 2006, 4:34pm UTC](https://www.ruby-forum.com/t/killing-off-a-process-tree/98012 "2006-07-13T16:34:34Z")

</div>

Is there a command in ruby that when given the pid , it will terminate all children processes of that pid including itself. It seems that Process.kill(9, pid) only kills the parent and not the children. thanks

---

## [Re-define class method](https://www.ruby-forum.com/t/re-define-class-method/98212)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 8\
**Last updated:** [July 13, 2006, 4:03pm UTC](https://www.ruby-forum.com/t/re-define-class-method/98212 "2006-07-13T16:03:09Z")

</div>

I’ve got the following: module ClassMethods def class\_method “Class method” end end class Thing extend ClassMethods end Thing.class\_method =\> “Class method” … and I want to change the behaviour of that method …

---

## [Irb command history problems under Ruby-1.8.4 and Mandriva 2](https://www.ruby-forum.com/t/irb-command-history-problems-under-ruby-1-8-4-and-mandriva-2/98210)

<div class="topic-metadata">

**Author:** [@richard\_apodaca](https://www.ruby-forum.com/u/richard_apodaca)\
**Replies:** 1\
**Last updated:** [July 13, 2006, 3:59pm UTC](https://www.ruby-forum.com/t/irb-command-history-problems-under-ruby-1-8-4-and-mandriva-2/98210 "2006-07-13T15:59:30Z")

</div>

A few months ago problems were reported with irb’s command history when Ruby-1.8.4 was compiled on a Mandriva 2006 system: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/185233 I had exactly the same pro…

---

## [Prototype design pattern](https://www.ruby-forum.com/t/prototype-design-pattern/98105)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [July 13, 2006, 3:59pm UTC](https://www.ruby-forum.com/t/prototype-design-pattern/98105 "2006-07-13T15:59:22Z")

</div>

anyone know of a good impl for ruby? regards. -a

---

## [Reading month from timestamp (postgres)](https://www.ruby-forum.com/t/reading-month-from-timestamp-postgres/98250)

<div class="topic-metadata">

**Author:** [@marc](https://www.ruby-forum.com/u/marc)\
**Replies:** 1\
**Last updated:** [July 13, 2006, 1:51pm UTC](https://www.ruby-forum.com/t/reading-month-from-timestamp-postgres/98250 "2006-07-13T13:51:37Z")

</div>

Hi @all! Does anybody know how to get a month from a timestamp which was made with ‘created\_on’ in Ruby on Rails? Greetings Marc

---

## [SOAP and WSDL?](https://www.ruby-forum.com/t/soap-and-wsdl/97322)

<div class="topic-metadata">

**Author:** [@fishman2001](https://www.ruby-forum.com/u/fishman2001)\
**Replies:** 4\
**Last updated:** [July 13, 2006, 12:58pm UTC](https://www.ruby-forum.com/t/soap-and-wsdl/97322 "2006-07-13T12:58:27Z")

</div>

Hi, is there a RUBY library which will automatically generate a WSDL file for a SOAP service? Thanks. Dan.

---

## [New C/ruby powered editor](https://www.ruby-forum.com/t/new-c-ruby-powered-editor/98239)

<div class="topic-metadata">

**Author:** [@splashlin](https://www.ruby-forum.com/u/splashlin)\
**Replies:** 2\
**Last updated:** [July 13, 2006, 12:51pm UTC](https://www.ruby-forum.com/t/new-c-ruby-powered-editor/98239 "2006-07-13T12:51:33Z")

</div>

Hi all, I’ve been hacking away at a new editor for a while and have come up with ‘Vela’. I’ve uploaded it to SF (no web page as shell access is down) and would love for you to download it and give me a quick opinion (…

---

## [YARV install on Mac OS X?](https://www.ruby-forum.com/t/yarv-install-on-mac-os-x/98235)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [July 13, 2006, 11:58am UTC](https://www.ruby-forum.com/t/yarv-install-on-mac-os-x/98235 "2006-07-13T11:58:04Z")

</div>

what to do in order being able to install YARV on Mac OS X ? the README says : configure blahblah their is no configure in the directory ??? it seems configure is written by some other tool, which one ?

---

## [Ruby-opengl](https://www.ruby-forum.com/t/ruby-opengl/97469)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 19\
**Last updated:** [July 13, 2006, 8:42am UTC](https://www.ruby-forum.com/t/ruby-opengl/97469 "2006-07-13T08:42:25Z")

</div>

I’ve tinkered a bit with Yoshi’s original ruby-opengl. My changes are available here: http://www.simisen.com/cgi-bin/jmg/ruby-opengl.rb The point of the changes started out mostly as an interest in getting some tutor…

---

## [Array#pop $B$G$N(B capa $B$N=L\>.(B](https://www.ruby-forum.com/t/array-pop-b-g-n-b-capa-b-n-l-b/98217)

<div class="topic-metadata">

**Author:** [@MORITA\_Naoyuki](https://www.ruby-forum.com/u/MORITA_Naoyuki)\
**Replies:** 0\
**Last updated:** [July 13, 2006, 6:35am UTC](https://www.ruby-forum.com/t/array-pop-b-g-n-b-capa-b-n-l-b/98217 "2006-07-13T06:35:16Z")

</div>

e$B?9ED$H?=$7$^$9!%e(B e$B$H$"$k\>r7o2\<$Ge(B ruby\_xrealloc e$B$,0\[\>o$J9bIQEY$G8F$P$l$F$$$?$N$GD4$Y$F$e(B e$B$?$H$3$m!$e(B Array#pop e$B$Ge(B capa e$B$r=L$a$k%3!\<%I$KL@$i$+$K%P%0$H;W$o$l$kIte(B e$BJ,$,$"$C$?$N$G=$@5$7…

---

## [Enterprise Ruby Studio](https://www.ruby-forum.com/t/enterprise-ruby-studio/98026)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 6\
**Last updated:** [July 13, 2006, 4:06am UTC](https://www.ruby-forum.com/t/enterprise-ruby-studio/98026 "2006-07-13T04:06:22Z")

</div>

ENTERPRISE RUBY STUDIO Announcing a new offering from Pragmatic Studio: An Enterprise Ruby Studio to be held September 11-13 in Boston, MA. Learn how to use the power and expressiveness of Ruby, and how to use it as…

---

## [Ruby Versions and other languages performane comparison](https://www.ruby-forum.com/t/ruby-versions-and-other-languages-performane-comparison/98152)

<div class="topic-metadata">

**Author:** [@stephanwehner](https://www.ruby-forum.com/u/stephanwehner)\
**Replies:** 1\
**Last updated:** [July 13, 2006, 2:43am UTC](https://www.ruby-forum.com/t/ruby-versions-and-other-languages-performane-comparison/98152 "2006-07-13T02:43:37Z")

</div>

I ran this simple ruby script max = 5000 z = 0 1.upto(max) do |x| 1.upto(max) do |y| z = (x+y-z) % 32000 end end puts 'Got z = ’ + z.to\_s on different ruby implementations and translations to bash, bc, Java, pe…

---

## [Ruby regexp spec. (was: OT: Regexp buddy)](https://www.ruby-forum.com/t/ruby-regexp-spec-was-ot-regexp-buddy/97944)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 3\
**Last updated:** [July 13, 2006, 2:28am UTC](https://www.ruby-forum.com/t/ruby-regexp-spec-was-ot-regexp-buddy/97944 "2006-07-13T02:28:15Z")

</div>

Speaking of learning regexps for ruby, is there somewhere a comprehensive list of just what syntax ruby’s regular expression engine does and doesn’t support? I can’t find any documentation, for example, that shows th…

---

## [Ruby Net::LDAP version 0.0.2](https://www.ruby-forum.com/t/ruby-net-ldap-version-0-0-2/98070)

<div class="topic-metadata">

**Author:** [@blackhedd](https://www.ruby-forum.com/u/blackhedd)\
**Replies:** 2\
**Last updated:** [July 13, 2006, 2:28am UTC](https://www.ruby-forum.com/t/ruby-net-ldap-version-0-0-2/98070 "2006-07-13T02:28:05Z")

</div>

We’re pleased to announce version 0.0.2 of Net::LDAP, the first pure-Ruby LDAP library. Net::LDAP intends to be a feature-complete LDAP client which can access as much as possible of the functionality of the most-used…

---

## [Accessing Instance Variables from file](https://www.ruby-forum.com/t/accessing-instance-variables-from-file/97933)

<div class="topic-metadata">

**Author:** [@djmook](https://www.ruby-forum.com/u/djmook)\
**Replies:** 1\
**Last updated:** [July 13, 2006, 1:47am UTC](https://www.ruby-forum.com/t/accessing-instance-variables-from-file/97933 "2006-07-13T01:47:38Z")

</div>

How do I access all of the instance variables from a ruby file that has classes in if I do know the class names, but I can store the class names as class-type objects? Object.instance\_variables only applies to various …

---

## [Listbox with Watir](https://www.ruby-forum.com/t/listbox-with-watir/98170)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 1\
**Last updated:** [July 13, 2006, 1:42am UTC](https://www.ruby-forum.com/t/listbox-with-watir/98170 "2006-07-13T01:42:42Z")

</div>

Is there a class or method for controlling listboxes in Watir? I tried using the regular select\_list methods and that works so long as you’re only selecting one item from the list. I, however, need to select multiple …

---

## [Ruby Accessibility Analysis Kit (RAAKT gem) 0.3](https://www.ruby-forum.com/t/ruby-accessibility-analysis-kit-raakt-gem-0-3/98200)

<div class="topic-metadata">

**Author:** [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Replies:** 0\
**Last updated:** [July 13, 2006, 1:23am UTC](https://www.ruby-forum.com/t/ruby-accessibility-analysis-kit-raakt-gem-0-3/98200 "2006-07-13T01:23:02Z")

</div>

NAME Raakt (Ruby Accessibility Analysis Kit) gem URIS http://raakt.rubyforge.org http://rubyforge.org/projects/raakt/ http://peterkrantz.com/projects/raakt SYNOPSIS Raakt is a toolkit to find accessibility issues …

---

## [Rescue and warning](https://www.ruby-forum.com/t/rescue-and-warning/98194)

<div class="topic-metadata">

**Author:** [@russellf](https://www.ruby-forum.com/u/russellf)\
**Replies:** 0\
**Last updated:** [July 13, 2006, 12:30am UTC](https://www.ruby-forum.com/t/rescue-and-warning/98194 "2006-07-13T00:30:09Z")

</div>

Hi, I have an app that gets regexpr from a config file. I check these using Regexpr.new and use rescue to find any with errors. This works fine but there are some regexprs that generate waringing. Is there anyway …

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

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