# Ruby

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

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

---

## [Use as Lib](https://www.ruby-forum.com/t/use-as-lib/88894)

<div class="topic-metadata">

**Author:** [@sai438](https://www.ruby-forum.com/u/sai438)\
**Replies:** 6\
**Last updated:** [March 16, 2007, 5:30am UTC](https://www.ruby-forum.com/t/use-as-lib/88894 "2007-03-16T05:30:19Z")

</div>

How can I use a specific directory as the lib along with ruby library files??? can Any one reply me with class name or module name?

---

## [When introspection doesn't](https://www.ruby-forum.com/t/when-introspection-doesnt/88815)

<div class="topic-metadata">

**Author:** [@chadlester](https://www.ruby-forum.com/u/chadlester)\
**Replies:** 6\
**Last updated:** [March 16, 2007, 4:39am UTC](https://www.ruby-forum.com/t/when-introspection-doesnt/88815 "2007-03-16T04:39:19Z")

</div>

Ruby pop quiz. How can it be that: foo.bar() is different from: foo.method(:bar).call() Is it possible to override the “method” method? Can you also override the “class” method? if foo.class == Array Array.instan…

---

## [General Ruby OOP Question - using inheritance or include for](https://www.ruby-forum.com/t/general-ruby-oop-question-using-inheritance-or-include-for/88874)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 9\
**Last updated:** [March 16, 2007, 3:01am UTC](https://www.ruby-forum.com/t/general-ruby-oop-question-using-inheritance-or-include-for/88874 "2007-03-16T03:01:11Z")

</div>

I have a generic Ruby OOP question. Which is the more “correct” way to share methods between two similar classes that do not necessarily need to inherit from anything else: inheritance or include (as a mix- in)? I r…

---

## [Release code and revision number](https://www.ruby-forum.com/t/release-code-and-revision-number/88725)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 10\
**Last updated:** [March 16, 2007, 2:34am UTC](https://www.ruby-forum.com/t/release-code-and-revision-number/88725 "2007-03-16T02:34:09Z")

</div>

e$B$J$+$@$G$9!#e(B SVNe$B$X$N0\\9T0JMhe(Bversion.he$B$N\<+F099?7$,$G$-$J$/$J$C$?$N$H!“F|C10Le(B e$B$G$O$”$^$jLr$KN)$?$J$$$3$H$b$"$k$N$G!“e(BSVNe$B$+$i%3%s%Q%$%k$7$?$H$-e(B e$B$K$O0UL#$N$J$$e(Bpatchlevele$B$N$+$o$j$Ke(Br…

---

## [To\_a](https://www.ruby-forum.com/t/to-a/88977)

<div class="topic-metadata">

**Author:** [@ckonrad](https://www.ruby-forum.com/u/ckonrad)\
**Replies:** 12\
**Last updated:** [March 16, 2007, 2:32am UTC](https://www.ruby-forum.com/t/to-a/88977 "2007-03-16T02:32:09Z")

</div>

how come this works: array = (1…8).to\_a puts array\[1\] but this does not: array = 1…8 array.to\_a puts array\[1\] what do the () in the above example do that makes it work? thanks

---

## [Merge / Diff algo](https://www.ruby-forum.com/t/merge-diff-algo/88965)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 2\
**Last updated:** [March 16, 2007, 1:59am UTC](https://www.ruby-forum.com/t/merge-diff-algo/88965 "2007-03-16T01:59:07Z")

</div>

Is there any lib to do simple text based merges (3 way) from Ruby? Perhaps it’s simple enough to do without an external lib. Just need to see which lines child1 added to parent, which ones child1 deleted, and same fo…

---

## [Freeze string fails to freeze?](https://www.ruby-forum.com/t/freeze-string-fails-to-freeze/88917)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [March 15, 2007, 11:16pm UTC](https://www.ruby-forum.com/t/freeze-string-fails-to-freeze/88917 "2007-03-15T23:16:50Z")

</div>

a=‘asdf’ =\> “asdf” a.freeze =\> “asdf” a=‘qwer’ =\> “qwer” should’nt that throw and exception ???

---

## [Is there interest in this? : get object from its object-spec](https://www.ruby-forum.com/t/is-there-interest-in-this-get-object-from-its-object-spec/88966)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 11:14pm UTC](https://www.ruby-forum.com/t/is-there-interest-in-this-get-object-from-its-object-spec/88966 "2007-03-15T23:14:50Z")

</div>

The following is the culmination of a discussion on ruby-talk from a few days ago. Someone asked if there was a way to find the instance of a singleton class if you only had the class. After positing a solution using …

---

## [Chomp](https://www.ruby-forum.com/t/chomp/88951)

<div class="topic-metadata">

**Author:** [@ckonrad](https://www.ruby-forum.com/u/ckonrad)\
**Replies:** 5\
**Last updated:** [March 15, 2007, 10:45pm UTC](https://www.ruby-forum.com/t/chomp/88951 "2007-03-15T22:45:44Z")

</div>

Hello I am reading a book right now on ruby on rails and the author says that you can only use chomp with the built variable which is $\_ i am confused because it seemed to work fine when i used it like this print “Pl…

---

## [Animated window resize with FXRuby](https://www.ruby-forum.com/t/animated-window-resize-with-fxruby/88934)

<div class="topic-metadata">

**Author:** [@Dat\_C](https://www.ruby-forum.com/u/Dat_C)\
**Replies:** 2\
**Last updated:** [March 15, 2007, 8:51pm UTC](https://www.ruby-forum.com/t/animated-window-resize-with-fxruby/88934 "2007-03-15T20:51:25Z")

</div>

Hello, Does anyone know of any prebuilt framework to facilitate animation in FXRuby (or GTK, or Qt)? I am coming from the web world and don’t know everything about desktop GUI. I can’t seem to find any information on…

---

## [What does this do? :](https://www.ruby-forum.com/t/what-does-this-do/88915)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 8\
**Last updated:** [March 15, 2007, 8:36pm UTC](https://www.ruby-forum.com/t/what-does-this-do/88915 "2007-03-15T20:36:23Z")

</div>

Looking at this piece of code, what does the colon do? def partner\_to(user) raise ArgumentError unless user user.id == recipient\_id ? sender : recipient end I got the code from this rails post: http://groups.google…

---

## [Win32/Process at win32utils](https://www.ruby-forum.com/t/win32-process-at-win32utils/88816)

<div class="topic-metadata">

**Author:** [@zemariamm](https://www.ruby-forum.com/u/zemariamm)\
**Replies:** 4\
**Last updated:** [March 15, 2007, 7:05pm UTC](https://www.ruby-forum.com/t/win32-process-at-win32utils/88816 "2007-03-15T19:05:58Z")

</div>

Hi guys, I’ve made a simple program to test the Process.create: require ‘rubygems’ require ‘win32/process’ pgname = “C:\\Program Files\\VideoLAN\\VLC\\vlc.exe” x = Process.create :app\_name =\> pgname.to\_s sleep 5 Proces…

---

## [Non-destructive merging of hashes in array](https://www.ruby-forum.com/t/non-destructive-merging-of-hashes-in-array/88618)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 15\
**Last updated:** [March 15, 2007, 5:23pm UTC](https://www.ruby-forum.com/t/non-destructive-merging-of-hashes-in-array/88618 "2007-03-15T17:23:54Z")

</div>

Hi, I have an array of hashes. The keys in the hashes represent the same things. eg: h1 = {:rabbits =\> 5} h2 = {:rabbits =\> 10} bunnies = \[h1, h2\] I want to end up with this: {:rabbits =\> 15} It’s a trivial task,…

---

## [DRbServerNotFound on TupleSpace#take but not read](https://www.ruby-forum.com/t/drbservernotfound-on-tuplespace-take-but-not-read/88918)

<div class="topic-metadata">

**Author:** [@brenton\_leanhardt](https://www.ruby-forum.com/u/brenton_leanhardt)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 4:20pm UTC](https://www.ruby-forum.com/t/drbservernotfound-on-tuplespace-take-but-not-read/88918 "2007-03-15T16:20:41Z")

</div>

I’m getting a DRbServerNotFound exception on TupleSpace#take but not TupleSpace#read. I’m running ruby 1.8.5 on fedora core 6. Here’s a little snippet: @http\_server.mount\_proc(’/delete’) do |req, res| id = req.path\_…

---

## [Little Book Of Ruby Brazilian Wiki](https://www.ruby-forum.com/t/little-book-of-ruby-brazilian-wiki/88914)

<div class="topic-metadata">

**Author:** [@huw](https://www.ruby-forum.com/u/huw)\
**Replies:** 1\
**Last updated:** [March 15, 2007, 3:45pm UTC](https://www.ruby-forum.com/t/little-book-of-ruby-brazilian-wiki/88914 "2007-03-15T15:45:31Z")

</div>

The Little Book of Ruby has just become a Wiki. Brazilian Rubyists and wouldbe Rubysists can find it here (thanks to Leonard Nunes): http://www.colibre.com.br:80/bin/view/Tech/TutorialRuby There is also the original…

---

## [DelegateClass vs. Extending](https://www.ruby-forum.com/t/delegateclass-vs-extending/88909)

<div class="topic-metadata">

**Author:** [@madscene](https://www.ruby-forum.com/u/madscene)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 3:12pm UTC](https://www.ruby-forum.com/t/delegateclass-vs-extending/88909 "2007-03-15T15:12:52Z")

</div>

I was looking at DelegateClass example: class Tempfile \< DelegateClass(File) # constant and class member data initialization… def initialize(basename, tmpdir=Dir::tmpdir) # build up file path/name in var tmpname... …

---

## [SimFrost (#117)](https://www.ruby-forum.com/t/simfrost-117/88911)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 3:10pm UTC](https://www.ruby-forum.com/t/simfrost-117/88911 "2007-03-15T15:10:26Z")

</div>

Isn’t this one a fun problem? Three cheers to Mark Jason Dominus for introducing it to me. The solutions were fantastic as well. In particular, people found many interesting ways to render the output: using some Un…

---

## [Ri slownes and complete class docs](https://www.ruby-forum.com/t/ri-slownes-and-complete-class-docs/88897)

<div class="topic-metadata">

**Author:** [@jendaperl](https://www.ruby-forum.com/u/jendaperl)\
**Replies:** 1\
**Last updated:** [March 15, 2007, 2:25pm UTC](https://www.ruby-forum.com/t/ri-slownes-and-complete-class-docs/88897 "2007-03-15T14:25:15Z")

</div>

De primero, why the heck is it so horribly slow? If I (horrors) perldoc a module into HTML, redirect to file and open in a browser, it’s instant … even though I get all the docs for the module with all the methods etc…

---

## [SOAP request parameters](https://www.ruby-forum.com/t/soap-request-parameters/88896)

<div class="topic-metadata">

**Author:** [@tkejzlar](https://www.ruby-forum.com/u/tkejzlar)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 12:53pm UTC](https://www.ruby-forum.com/t/soap-request-parameters/88896 "2007-03-15T12:53:34Z")

</div>

Hi, I have a problem with Ruby SOAP client. Basically, I create new client instance via SOAP::RPC::Driver.new, then I use add\_method(‘method’, ‘param1’, ‘param2’) and then try to call the method - soap.method(‘value1…

---

## [Eclipse and vss plugin](https://www.ruby-forum.com/t/eclipse-and-vss-plugin/85835)

<div class="topic-metadata">

**Author:** [@parvg](https://www.ruby-forum.com/u/parvg)\
**Replies:** 2\
**Last updated:** [March 15, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/eclipse-and-vss-plugin/85835 "2007-03-15T12:34:01Z")

</div>

I apologize as this may/is not be a ruby question. Is anybody using eclipse and vss plugin to do their ruby work? If yes, is there any configuration you need to perform. I have installed the VSS plugin for eclipse. …

---

## [Computer Job Vacancy](https://www.ruby-forum.com/t/computer-job-vacancy/88895)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 12:31pm UTC](https://www.ruby-forum.com/t/computer-job-vacancy/88895 "2007-03-15T12:31:00Z")

</div>

Computer Job Vacancy http://www.jobbankdata.com/job-computer.htm

---

## [Ext/openssl $B$N%a%s%F%J$K$D$$$F(B](https://www.ruby-forum.com/t/ext-openssl-b-n-a-s-f-j-k-d-f-b/88708)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 2\
**Last updated:** [March 15, 2007, 11:06am UTC](https://www.ruby-forum.com/t/ext-openssl-b-n-a-s-f-j-k-d-f-b/88708 "2007-03-15T11:06:49Z")

</div>

ã‚†ãžã•ã‚“ ã€€å…ˆæ—¥ãŠè©±ã—ã¾ã—ãŸãŒã€ Technorama Ltd. removed\_email\_address@domain.invalid ã‹ã‚‰ãŸãã•ã‚“ openssl ãƒ¢ã‚¸ãƒ¥ãƒ¼ãƒ«ã¸ã®ãƒ‘ãƒƒãƒãŒæ¥ã¦ã„ã¾ã™ãŒã€ tracker ã§ã‚‚ã„ãã¤ã‹æ”¾ç½®çŠ¶…

---

## [Characters '{', '\[' in irb](https://www.ruby-forum.com/t/characters-in-irb/88880)

<div class="topic-metadata">

**Author:** [@emilsverige](https://www.ruby-forum.com/u/emilsverige)\
**Replies:** 1\
**Last updated:** [March 15, 2007, 10:27am UTC](https://www.ruby-forum.com/t/characters-in-irb/88880 "2007-03-15T10:27:42Z")

</div>

I have two computers (Windows XP on both) where Ruby is installed. On one of them everything is working fine, but the other one isn’t. If I copy these lines: {“one” =\> 1} \[“one”, “two”, “three”\] and paste it into ir…

---

## [Nil Comparable](https://www.ruby-forum.com/t/nil-comparable/88798)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 8\
**Last updated:** [March 15, 2007, 10:16am UTC](https://www.ruby-forum.com/t/nil-comparable/88798 "2007-03-15T10:16:41Z")

</div>

Does anyone see anything problematic about this? class NilClass include Comparable def \<=\>(x) x.nil? ? 0 : -1 end def succ; nil; end end It seems benign enough, and can be used to represent “always before”. For …

---

## [Ruby.on-page.net - Evolution began](https://www.ruby-forum.com/t/ruby-on-page-net-evolution-began/88417)

<div class="topic-metadata">

**Author:** [@Des](https://www.ruby-forum.com/u/Des)\
**Replies:** 23\
**Last updated:** [March 15, 2007, 8:15am UTC](https://www.ruby-forum.com/t/ruby-on-page-net-evolution-began/88417 "2007-03-15T08:15:22Z")

</div>

How many times have you ever needed to find just one argument of a method/function/operator or just some word of syntax while working? For example, in web development, you really need to work with many programming lan…

---

## [Gtk::TextBuffer colorful](https://www.ruby-forum.com/t/gtk-textbuffer-colorful/88855)

<div class="topic-metadata">

**Author:** [@Karl\_Gabel](https://www.ruby-forum.com/u/Karl_Gabel)\
**Replies:** 2\
**Last updated:** [March 15, 2007, 3:41am UTC](https://www.ruby-forum.com/t/gtk-textbuffer-colorful/88855 "2007-03-15T03:41:59Z")

</div>

Hello, is there any way to bring some color into the Gtk::TextView for some lines? example: this line is black this line is black this line is red this line is black … I use the Gtk::TextBuffer.insert\_at\_cursor(…

---

## [ActiveRecord::Extensions 0.5.2 Released!](https://www.ruby-forum.com/t/activerecord-extensions-0-5-2-released/88859)

<div class="topic-metadata">

**Author:** [@zdennis](https://www.ruby-forum.com/u/zdennis)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 2:30am UTC](https://www.ruby-forum.com/t/activerecord-extensions-0-5-2-released/88859 "2007-03-15T02:30:49Z")

</div>

ActiveRecord::Extensions 0.5.2 is released! This release allows you to install “ar-extensions” as a rubygem. gem install -r ar-extensions Zach http://www.continuousthinking.com/tags/arext

---

## [Windows PATH contains trunk](https://www.ruby-forum.com/t/windows-path-contains-trunk/88831)

<div class="topic-metadata">

**Author:** [@dkmd\_nielsen](https://www.ruby-forum.com/u/dkmd_nielsen)\
**Replies:** 1\
**Last updated:** [March 14, 2007, 11:38pm UTC](https://www.ruby-forum.com/t/windows-path-contains-trunk/88831 "2007-03-14T23:38:35Z")

</div>

C:\\Program Files\\Ruby\\trunk\\Build;C:\\Program Files\\Ruby\\trunk\\Src\\Ruby The following is in my windows path. What is it? My ruby installation is in c:\\ruby-185-21. So why is this path pointing at c: \\program files\\r…

---

## [QT Ruby odd focus behavior](https://www.ruby-forum.com/t/qt-ruby-odd-focus-behavior/88097)

<div class="topic-metadata">

**Author:** [@christophertasma](https://www.ruby-forum.com/u/christophertasma)\
**Replies:** 6\
**Last updated:** [March 14, 2007, 10:02pm UTC](https://www.ruby-forum.com/t/qt-ruby-odd-focus-behavior/88097 "2007-03-14T22:02:00Z")

</div>

Hello all, I was writing a simple ‘file sharing’ program with QT and ruby. I noticed when running two clients on one machine for testing some odd behavior with the focus. When a peer receives a request from and serv…

---

## [Using ruby with mysql](https://www.ruby-forum.com/t/using-ruby-with-mysql/88837)

<div class="topic-metadata">

**Author:** [@phudson1442](https://www.ruby-forum.com/u/phudson1442)\
**Replies:** 0\
**Last updated:** [March 14, 2007, 9:48pm UTC](https://www.ruby-forum.com/t/using-ruby-with-mysql/88837 "2007-03-14T21:48:41Z")

</div>

Under Windows XP, I have Ruby installed and running, and I have mysql installed and running. I want to use these together. I’ve used “gem install mysql” to install the client between the two: mysql 2.7.3 (mswin32) N…

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

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