# Ruby

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

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

---

## [Enforce implementation of Module method](https://www.ruby-forum.com/t/enforce-implementation-of-module-method/123096)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 4\
**Last updated:** [December 14, 2007, 4:19pm UTC](https://www.ruby-forum.com/t/enforce-implementation-of-module-method/123096 "2007-12-14T16:19:39Z")

</div>

Let’s say I have the following module: module Parenting def add\_child(a\_child) self.children.push(a\_child) end def delete\_child(a\_child) self.children.delete(a\_child) end def children # need to implement end e…

---

## [Regexp Matching Not Blank And Not A Specific Word?](https://www.ruby-forum.com/t/regexp-matching-not-blank-and-not-a-specific-word/123062)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 6\
**Last updated:** [December 14, 2007, 2:05pm UTC](https://www.ruby-forum.com/t/regexp-matching-not-blank-and-not-a-specific-word/123062 "2007-12-14T14:05:14Z")

</div>

Hi, Please could somebody show me how to write a regular expression that matches when the input is not blank and it’s not a specific word, e.g. dog. For example, I would hope for these results: ‘’ =~ regexp # …

---

## [Getting method parameters in specified order](https://www.ruby-forum.com/t/getting-method-parameters-in-specified-order/122985)

<div class="topic-metadata">

**Author:** [@Chintana\_W](https://www.ruby-forum.com/u/Chintana_W)\
**Replies:** 8\
**Last updated:** [December 14, 2007, 1:54pm UTC](https://www.ruby-forum.com/t/getting-method-parameters-in-specified-order/122985 "2007-12-14T13:54:28Z")

</div>

Hi, If I declare a function that expects 3 arguments, def bar(x, y, z) … end and later, if I have the function name in a string, is there a way to get the parameter names using reflection in Ruby? Something simila…

---

## [Hot to access the text file and delete it](https://www.ruby-forum.com/t/hot-to-access-the-text-file-and-delete-it/123141)

<div class="topic-metadata">

**Author:** [@ankush](https://www.ruby-forum.com/u/ankush)\
**Replies:** 2\
**Last updated:** [December 14, 2007, 1:03pm UTC](https://www.ruby-forum.com/t/hot-to-access-the-text-file-and-delete-it/123141 "2007-12-14T13:03:28Z")

</div>

How do i access the text file and delete the file. This file gets generated periodically. So i need to make a script for d same so that i can delete it just by running the ruby script

---

## [Ruby/Gnome app hangs when http'ing from inside a thread (linux only)](https://www.ruby-forum.com/t/ruby-gnome-app-hangs-when-httping-from-inside-a-thread-linux-only/122895)

<div class="topic-metadata">

**Author:** [@AndrSSSS](https://www.ruby-forum.com/u/AndrSSSS)\
**Replies:** 5\
**Last updated:** [December 14, 2007, 1:00pm UTC](https://www.ruby-forum.com/t/ruby-gnome-app-hangs-when-httping-from-inside-a-thread-linux-only/122895 "2007-12-14T13:00:58Z")

</div>

Hello, I’m writing a Ruby/Gnome application that auto-updates itself from the internet when a new version is available. The auto-update function runs in a different thread, so the user won’t even notice that the appl…

---

## [Suprised by destructive map (not map!)](https://www.ruby-forum.com/t/suprised-by-destructive-map-not-map/123016)

<div class="topic-metadata">

**Author:** [@bor\_S](https://www.ruby-forum.com/u/bor_S)\
**Replies:** 8\
**Last updated:** [December 14, 2007, 12:42pm UTC](https://www.ruby-forum.com/t/suprised-by-destructive-map-not-map/123016 "2007-12-14T12:42:09Z")

</div>

Occasionally I run into bits of ruby that are surprising to me (although might not be to matz). Here is one of them. Should I file this as a bug (I thought .map is supposed to be non-destructive), or just keep in mind …

---

## [Declaration for module methods which need to be implemented](https://www.ruby-forum.com/t/declaration-for-module-methods-which-need-to-be-implemented/196543)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 1\
**Last updated:** [December 14, 2007, 11:18am UTC](https://www.ruby-forum.com/t/declaration-for-module-methods-which-need-to-be-implemented/196543 "2007-12-14T11:18:41Z")

</div>

Let’s say I have the following module: module Parenting def add\_child(a\_child) self.children.push(a\_child) end def delete\_child(a\_child) self.children.delete(a\_child) end def children # need to implement but i…

---

## [Pulling out a specfic feild from a line](https://www.ruby-forum.com/t/pulling-out-a-specfic-feild-from-a-line/123039)

<div class="topic-metadata">

**Author:** [@jazcyk](https://www.ruby-forum.com/u/jazcyk)\
**Replies:** 7\
**Last updated:** [December 14, 2007, 11:06am UTC](https://www.ruby-forum.com/t/pulling-out-a-specfic-feild-from-a-line/123039 "2007-12-14T11:06:26Z")

</div>

Hey guys Ive been looking for awhile now today trying to find a decent example of this and im really fustrated with it now. I need to get a specfic section of a line. lets sat this is the line example 1 example 2 …

---

## [Is there any way to redefine the \`new' method?](https://www.ruby-forum.com/t/is-there-any-way-to-redefine-the-new-method/123032)

<div class="topic-metadata">

**Author:** [@pluskid](https://www.ruby-forum.com/u/pluskid)\
**Replies:** 6\
**Last updated:** [December 14, 2007, 10:16am UTC](https://www.ruby-forum.com/t/is-there-any-way-to-redefine-the-new-method/123032 "2007-12-14T10:16:22Z")

</div>

Hi! I’m writing a toy interpreter for scheme in Ruby. I created a class to represent scheme Symbol. And as the scheme Symbol, I want only one instance for symbols with the same name. I try to do it like this: class …

---

## [\[ANN\] Gerbil 0.0.1](https://www.ruby-forum.com/t/ann-gerbil-0-0-1/123128)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [December 14, 2007, 9:01am UTC](https://www.ruby-forum.com/t/ann-gerbil-0-0-1/123128 "2007-12-14T09:01:05Z")

</div>

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://gerbil.rubyforge.org version:…

---

## [Timezone $B4X?t$,(B cygwin $B$G8+$D$+$j$^$;$s(B](https://www.ruby-forum.com/t/timezone-b4x-t-b-cygwin-b-g8-d-j-s-b/122931)

<div class="topic-metadata">

**Author:** [@drenovac](https://www.ruby-forum.com/u/drenovac)\
**Replies:** 3\
**Last updated:** [December 14, 2007, 8:49am UTC](https://www.ruby-forum.com/t/timezone-b4x-t-b-cygwin-b-g8-d-j-s-b/122931 "2007-12-14T08:49:43Z")

</div>

e$B%k%S3+H/\<T$N3’$5$s!"e(B e$B:G?7$Ne(B HEAD e$B$Ge(B make e$B$7$h$&$H$7$?$i\<!$N$h$&$J%(%i!\<$K$J$j$^$7$?!#e(B missing/strftime.c:465: undefined reference to \`\_timezone’ strftime.c e$B$Oe(B 7e$B7nEv$?$j$+$iJQ99L5$7$G!…

---

## [\[ANN\] Gerbil 0.0.0 - a document generator](https://www.ruby-forum.com/t/ann-gerbil-0-0-0-a-document-generator/122621)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 8\
**Last updated:** [December 14, 2007, 8:40am UTC](https://www.ruby-forum.com/t/ann-gerbil-0-0-0-a-document-generator/122621 "2007-12-14T08:40:13Z")

</div>

Dear developers, technical writers, and documentation gurus, I am proud to announce a new project of mine named “Gerbil” which is beautifully short (176 lines of code) and powerful! http://gerbil.rubyforge.org/g…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/123123)

<div class="topic-metadata">

**Author:** [@jeet\_ajay](https://www.ruby-forum.com/u/jeet_ajay)\
**Replies:** 0\
**Last updated:** [December 14, 2007, 7:11am UTC](https://www.ruby-forum.com/t/unsubscribe/123123 "2007-12-14T07:11:59Z")

</div>

unsubscribe -Jeet

---

## [Leopard update - any Ruby hassles?](https://www.ruby-forum.com/t/leopard-update-any-ruby-hassles/123105)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 6\
**Last updated:** [December 14, 2007, 5:30am UTC](https://www.ruby-forum.com/t/leopard-update-any-ruby-hassles/123105 "2007-12-14T05:30:14Z")

</div>

So I’ve been dragging my heels on the Leopard update thing. I have an install disc I can use to do it for free (site license at a client) so I can do it, I guess, but I’m still dragging my heels. If you have a bunch o…

---

## [Circular dependency on AIX](https://www.ruby-forum.com/t/circular-dependency-on-aix/123116)

<div class="topic-metadata">

**Author:** [@Yutaka\_K](https://www.ruby-forum.com/u/Yutaka_K)\
**Replies:** 0\
**Last updated:** [December 14, 2007, 5:04am UTC](https://www.ruby-forum.com/t/circular-dependency-on-aix/123116 "2007-12-14T05:04:32Z")

</div>

é‡‘æœ¬ã¨ç”³ã—ã¾ã™ã€‚ ãƒªãƒªãƒ¼ã‚¹å‰ã®ãŠå¿™ã—ã„æ™‚æœŸã«æç¸®ãªã®ã§ã™ãŒã€ä»Š1.9ãŒAIXã§ ã‚³ãƒ³ãƒ‘ã‚¤ãƒ«ã™ã‚‹ã¨ä»¥ä¸‹ã®ã‚ˆã†ãªã‚¨ãƒ©ãƒ¼ã§æ­¢ã¾ã£ã¦ã—ã¾ã„ã¾ã™ã€‚ make: Circular .rbconfig.tim…

---

## [Declaration for module methods which need to be implemented](https://www.ruby-forum.com/t/declaration-for-module-methods-which-need-to-be-implemented/123095)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 1\
**Last updated:** [December 14, 2007, 4:28am UTC](https://www.ruby-forum.com/t/declaration-for-module-methods-which-need-to-be-implemented/123095 "2007-12-14T04:28:51Z")

</div>

Let’s say I have the following module: module Parenting def add\_child(a\_child) self.children.push(a\_child) end def delete\_child(a\_child) self.children.delete(a\_child) end def children # need to implement but i…

---

## [Simple method and block. foo.times](https://www.ruby-forum.com/t/simple-method-and-block-foo-times/122991)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 5\
**Last updated:** [December 14, 2007, 4:24am UTC](https://www.ruby-forum.com/t/simple-method-and-block-foo-times/122991 "2007-12-14T04:24:45Z")

</div>

Why does the output stop at eight. Shouldn’t the class of nine be shown also? 9.times {|x| print x , " ", x.class, “\\n” } 0 Fixnum 1 Fixnum 2 Fixnum 3 Fixnum 4 Fixnum 5 Fixnum 6 Fixnum 7 Fixnum 8 Fixnum =\> 9 …

---

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

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 50\
**Last updated:** [December 14, 2007, 4:12am UTC](https://www.ruby-forum.com/t/ruby-certification/122495 "2007-12-14T04:12:51Z")

</div>

Dear friends, As like java sun certification, (SCJP) is there any certifications exam in ruby thats accepted by companies globally. Thanks in advance Regards, Martin

---

## [How To Avoid Ugly Declerations](https://www.ruby-forum.com/t/how-to-avoid-ugly-declerations/122774)

<div class="topic-metadata">

**Author:** [@michaelb](https://www.ruby-forum.com/u/michaelb)\
**Replies:** 12\
**Last updated:** [December 14, 2007, 3:25am UTC](https://www.ruby-forum.com/t/how-to-avoid-ugly-declerations/122774 "2007-12-14T03:25:06Z")

</div>

Hello! More and more I find myself having to do something like this: def some\_method(foo) results = \[\] foo.each {|f| results \<\< f.reverse} return results end As you can see, that is some pretty ugly code, but it’s …

---

## [Executing Files (without shell)](https://www.ruby-forum.com/t/executing-files-without-shell/123103)

<div class="topic-metadata">

**Author:** [@thefed](https://www.ruby-forum.com/u/thefed)\
**Replies:** 2\
**Last updated:** [December 14, 2007, 3:19am UTC](https://www.ruby-forum.com/t/executing-files-without-shell/123103 "2007-12-14T03:19:50Z")

</div>

Once again, a similarly themed question from me: Is it possible (without syscall ) to execute a file without using a shell? Thanks \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_| Ari I just bought another case of RockStar. Expe…

---

## [Showing Running Processes in variable](https://www.ruby-forum.com/t/showing-running-processes-in-variable/123057)

<div class="topic-metadata">

**Author:** [@jackster](https://www.ruby-forum.com/u/jackster)\
**Replies:** 12\
**Last updated:** [December 14, 2007, 1:52am UTC](https://www.ruby-forum.com/t/showing-running-processes-in-variable/123057 "2007-12-14T01:52:57Z")

</div>

I want to capture the list of running processes on my computer. I am to get all the data into my variable with a simple system call: x = ps -el My problem comes when I want to display the data back out in a legible f…

---

## [\[ANN\] Third edition of "Programming Ruby" now in beta](https://www.ruby-forum.com/t/ann-third-edition-of-programming-ruby-now-in-beta/123100)

<div class="topic-metadata">

**Author:** [@dirtytree](https://www.ruby-forum.com/u/dirtytree)\
**Replies:** 3\
**Last updated:** [December 14, 2007, 1:40am UTC](https://www.ruby-forum.com/t/ann-third-edition-of-programming-ruby-now-in-beta/123100 "2007-12-14T01:40:22Z")

</div>

Ruby 1.9 is just around the corner, so it looks like a good time to create a new edition of Programming Ruby. So, I’m pleased to announce that the Third Edition of the PickAxe has just entered beta. The book’s home pa…

---

## [Some questions about Ruby 1.9](https://www.ruby-forum.com/t/some-questions-about-ruby-1-9/123102)

<div class="topic-metadata">

**Author:** [@maz](https://www.ruby-forum.com/u/maz)\
**Replies:** 2\
**Last updated:** [December 14, 2007, 1:31am UTC](https://www.ruby-forum.com/t/some-questions-about-ruby-1-9/123102 "2007-12-14T01:31:00Z")

</div>

I fear many of my questions will belong to the “often asked” category but a google search wasn’t too fruitful so here I am… I did find some information on the state of threading but I wanted to clear some things up.…

---

## [Unit tests with Authorize.net and ARB](https://www.ruby-forum.com/t/unit-tests-with-authorize-net-and-arb/123098)

<div class="topic-metadata">

**Author:** [@janovetz](https://www.ruby-forum.com/u/janovetz)\
**Replies:** 0\
**Last updated:** [December 14, 2007, 12:05am UTC](https://www.ruby-forum.com/t/unit-tests-with-authorize-net-and-arb/123098 "2007-12-14T00:05:56Z")

</div>

Hey folks– I’m using Authorize.net and their ARB (automatic recurring billing) feature. I’m trying to write unit tests for the interface to make sure that I can create/update/cancel subscriptions and also get proper …

---

## [Telnet class - proxy option](https://www.ruby-forum.com/t/telnet-class-proxy-option/123094)

<div class="topic-metadata">

**Author:** [@Carcarius](https://www.ruby-forum.com/u/Carcarius)\
**Replies:** 0\
**Last updated:** [December 13, 2007, 11:21pm UTC](https://www.ruby-forum.com/t/telnet-class-proxy-option/123094 "2007-12-13T23:21:59Z")

</div>

Hello, Does anyone know where I could find examples on the use of the proxy option for the telnet class? About a week ago I submitted a post requesting advice on how to open a second telnet session within an open te…

---

## [System(), syscall(), and Shells](https://www.ruby-forum.com/t/system-syscall-and-shells/122955)

<div class="topic-metadata">

**Author:** [@thefed](https://www.ruby-forum.com/u/thefed)\
**Replies:** 4\
**Last updated:** [December 13, 2007, 10:11pm UTC](https://www.ruby-forum.com/t/system-syscall-and-shells/122955 "2007-12-13T22:11:58Z")

</div>

Hello all I have a rather quick question. As a part of the ruby unix team, we need to be able to execute commands. One way to do this is through system. The other way is through syscall. First: does a call of system…

---

## [Instant Rails Update Plans](https://www.ruby-forum.com/t/instant-rails-update-plans/196541)

<div class="topic-metadata">

**Author:** [@rjberry](https://www.ruby-forum.com/u/rjberry)\
**Replies:** 2\
**Last updated:** [December 13, 2007, 10:06pm UTC](https://www.ruby-forum.com/t/instant-rails-update-plans/196541 "2007-12-13T22:06:05Z")

</div>

Hello all; I just wanted to give a link to some information I posted regarding what I plan to do with Instant Rails in the immediate future. Check it out here - Thank you, Rob B.

---

## [Modern Ruby RPMS for Old Distros?](https://www.ruby-forum.com/t/modern-ruby-rpms-for-old-distros/122884)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 5\
**Last updated:** [December 13, 2007, 9:48pm UTC](https://www.ruby-forum.com/t/modern-ruby-rpms-for-old-distros/122884 "2007-12-13T21:48:29Z")

</div>

Does anyone know of a site that has rpms of a reasonable (at least 1.8) ruby for a variety of older linux distros? I was getting ready to test some scripts on my servers, and have been having problems getting modern e…

---

## [Using print and puts for output](https://www.ruby-forum.com/t/using-print-and-puts-for-output/123073)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 2\
**Last updated:** [December 13, 2007, 9:16pm UTC](https://www.ruby-forum.com/t/using-print-and-puts-for-output/123073 "2007-12-13T21:16:06Z")

</div>

Thu 13 Dec 2007 07:22:13 PM GMT just play with an array and see what you can do with it a = uname -a.to\_a print a.class puts a.class END what’s the difference bewteen these two methods of printing? Both say the same…

---

## [Help with OpenSSL RSA](https://www.ruby-forum.com/t/help-with-openssl-rsa/111501)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 6\
**Last updated:** [December 13, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/help-with-openssl-rsa/111501 "2007-12-13T21:06:03Z")

</div>

Hi, I’m writing a little code to do some RSA stuff and I need to extract the public exponent and modulus for passing to a browser that will use them in Javascript. I’ve done considerable digging but have drawn a blan…

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

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