# Ruby

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

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

---

## [Does anyone know what's broken about ftools?](https://www.ruby-forum.com/t/does-anyone-know-whats-broken-about-ftools/75881)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 3\
**Last updated:** [November 14, 2006, 4:56pm UTC](https://www.ruby-forum.com/t/does-anyone-know-whats-broken-about-ftools/75881 "2006-11-14T16:56:53Z")

</div>

All, I just had a problem in my Rails app. where I was generating a ZIP file (using rubyzip) on Linux and copying to a Windows share (mounted via Samba) using ftools and sometimes partial copies would occur. I then s…

---

## [Ruby libraries / archives](https://www.ruby-forum.com/t/ruby-libraries-archives/75889)

<div class="topic-metadata">

**Author:** [@rlorimor](https://www.ruby-forum.com/u/rlorimor)\
**Replies:** 2\
**Last updated:** [November 14, 2006, 1:00pm UTC](https://www.ruby-forum.com/t/ruby-libraries-archives/75889 "2006-11-14T13:00:26Z")

</div>

How does everyone create, organize and distribute Ruby libraries? The only mention of a Java JAR-like archive is the tar2rubyscript. Is there something better out there? Robert

---

## [Capitalize bug?](https://www.ruby-forum.com/t/capitalize-bug/75915)

<div class="topic-metadata">

**Author:** [@meddurenos](https://www.ruby-forum.com/u/meddurenos)\
**Replies:** 8\
**Last updated:** [November 14, 2006, 12:42pm UTC](https://www.ruby-forum.com/t/capitalize-bug/75915 "2006-11-14T12:42:38Z")

</div>

Hi! I’m a new member here, though I use and enjoy ruby for about three years. There’s a beginning to everyuthing, including thing not doing the way you think they should, even in ruby! So here’s my problem: @nom = w…

---

## [Getting initialization status from "foo = Class.new"](https://www.ruby-forum.com/t/getting-initialization-status-from-foo-class-new/75742)

<div class="topic-metadata">

**Author:** [@r0dzilla](https://www.ruby-forum.com/u/r0dzilla)\
**Replies:** 3\
**Last updated:** [November 14, 2006, 11:54am UTC](https://www.ruby-forum.com/t/getting-initialization-status-from-foo-class-new/75742 "2006-11-14T11:54:15Z")

</div>

Here’s a ruby noob question for ya: I have a class I’ve made that the initalize method searches for a file needed for the class to function. Right now, I’ve made a class variable, “found”, that is set to true or fals…

---

## [Compiling ext/openssl ruby 1.8.5 on Linux](https://www.ruby-forum.com/t/compiling-ext-openssl-ruby-1-8-5-on-linux/75831)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 2\
**Last updated:** [November 14, 2006, 10:21am UTC](https://www.ruby-forum.com/t/compiling-ext-openssl-ruby-1-8-5-on-linux/75831 "2006-11-14T10:21:58Z")

</div>

Hi list the problem just seems to elude me -and Google for that matter- whatever I do as soon as I compile ruby (1.8.5 and snapshot) on my 2.6.17 debian/ubuntu based boxen I cannot get anything done in ext/openssl …

---

## [Modelling Unique Collections in Rails/SQL](https://www.ruby-forum.com/t/modelling-unique-collections-in-rails-sql/75826)

<div class="topic-metadata">

**Author:** [@acgreen](https://www.ruby-forum.com/u/acgreen)\
**Replies:** 2\
**Last updated:** [November 14, 2006, 9:25am UTC](https://www.ruby-forum.com/t/modelling-unique-collections-in-rails-sql/75826 "2006-11-14T09:25:54Z")

</div>

I’m puzzelling over how to model for want of a better description unique collections in Rails and SQL Heres my Domain Specific Example: I start with… class Band has\_many :line\_ups # ? end class LineUp belongs…

---

## [Ampersand entities](https://www.ruby-forum.com/t/ampersand-entities/75878)

<div class="topic-metadata">

**Author:** [@Miquel\_O](https://www.ruby-forum.com/u/Miquel_O)\
**Replies:** 4\
**Last updated:** [November 14, 2006, 9:19am UTC](https://www.ruby-forum.com/t/ampersand-entities/75878 "2006-11-14T09:19:53Z")

</div>

Hi all How can I convert from utf-8 to HMTL ampersand entities and from HTML ampersand entities to utf-8 (I’m searching it a lot but I can found it)? Thanks in advance – Miquel (a.k.a. Ton) Linux User #286784 GPG…

---

## [Re: is there any curl like lib in ruby?](https://www.ruby-forum.com/t/re-is-there-any-curl-like-lib-in-ruby/75909)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [November 14, 2006, 7:39am UTC](https://www.ruby-forum.com/t/re-is-there-any-curl-like-lib-in-ruby/75909 "2006-11-14T07:39:45Z")

</div>

Well there is ruby-libcurl, ruby bindings to libcurl http://raa.ruby-lang.org/project/ruby-libcurl/ fairly old, so not sure the mileage there. Ruby has open-uri http://www.ruby-doc.org/stdlib/libdoc/open-uri/rdoc/ w…

---

## [IRB - Switching "comment mode"](https://www.ruby-forum.com/t/irb-switching-comment-mode/75897)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 0\
**Last updated:** [November 14, 2006, 3:28am UTC](https://www.ruby-forum.com/t/irb-switching-comment-mode/75897 "2006-11-14T03:28:29Z")

</div>

Hi, I’ve been trying to solve this thing on my TODO list for some time (ok, it’s just on my list, and not of highest priority ;-)), and finally thought I’d post here. In IRB, I would like to be able to apply a filter …

---

## [Sprintf bug (?)](https://www.ruby-forum.com/t/sprintf-bug/75635)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 8\
**Last updated:** [November 14, 2006, 2:19am UTC](https://www.ruby-forum.com/t/sprintf-bug/75635 "2006-11-14T02:19:24Z")

</div>

Hello all, I am wondering if I have just found a bug in (s)printf… According to the PickAxe, table “sprintf flag characters”: ================= snip ================================== 0 (zero) all Pad with zeros,…

---

## [RMagick - Watermarking Images with the shade method](https://www.ruby-forum.com/t/rmagick-watermarking-images-with-the-shade-method/75887)

<div class="topic-metadata">

**Author:** [@tim-hunter](https://www.ruby-forum.com/u/tim-hunter)\
**Replies:** 0\
**Last updated:** [November 14, 2006, 1:03am UTC](https://www.ruby-forum.com/t/rmagick-watermarking-images-with-the-shade-method/75887 "2006-11-14T01:03:14Z")

</div>

I’ve just uploaded the latest in my series of articles about using RMagick. This one explains a very simple technique for creating a digital watermark that looks like embossed text. I hope you find it useful. http://…

---

## [RubyGems Issue](https://www.ruby-forum.com/t/rubygems-issue/75713)

<div class="topic-metadata">

**Author:** [@Skeets](https://www.ruby-forum.com/u/Skeets)\
**Replies:** 9\
**Last updated:** [November 14, 2006, 12:49am UTC](https://www.ruby-forum.com/t/rubygems-issue/75713 "2006-11-14T00:49:13Z")

</div>

hi all, i have successfully installed gems on my winxp box. when i type in gems -v(or is it --version, i can’t recall off hand) i get back the current version (i think it is version 0.9). so far, so good. however, …

---

## [Re: undefined method \`string'](https://www.ruby-forum.com/t/re-undefined-method-string/75880)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [November 14, 2006, 12:11am UTC](https://www.ruby-forum.com/t/re-undefined-method-string/75880 "2006-11-14T00:11:08Z")

</div>

From: Comfort E. Perhaps, but soup.a gives me actual results other than nil. “.a” is a rubyful\_soup method. Surprising. Can you provide the contents of the sample document where you are getting this error, so that…

---

## [DBF file library analyzed and rubyfied on rubyist magazine](https://www.ruby-forum.com/t/dbf-file-library-analyzed-and-rubyfied-on-rubyist-magazine/75876)

<div class="topic-metadata">

**Author:** [@3nd3r](https://www.ruby-forum.com/u/3nd3r)\
**Replies:** 0\
**Last updated:** [November 13, 2006, 11:47pm UTC](https://www.ruby-forum.com/t/dbf-file-library-analyzed-and-rubyfied-on-rubyist-magazine/75876 "2006-11-13T23:47:03Z")

</div>

The site http://jp.rubyist.net/magazine has an ongoing code analysis and correction series. For example, issue 13 has a DBF file reader and writer library that is analyzed and made more ruby like. Here is the transl…

---

## [Re: undefined method \`string'](https://www.ruby-forum.com/t/re-undefined-method-string/75873)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [November 13, 2006, 11:45pm UTC](https://www.ruby-forum.com/t/re-undefined-method-string/75873 "2006-11-13T23:45:20Z")

</div>

From: Comfort E. Why does this work: … puts soup.a … but adding .string a la: … puts soup.a.string … results in: undefined method \`string’ for nil:NilClass (NoMethodError) ?? This means that the return value…

---

## [Undefined method \`string'](https://www.ruby-forum.com/t/undefined-method-string/75869)

<div class="topic-metadata">

**Author:** [@comforteagle](https://www.ruby-forum.com/u/comforteagle)\
**Replies:** 1\
**Last updated:** [November 13, 2006, 11:20pm UTC](https://www.ruby-forum.com/t/undefined-method-string/75869 "2006-11-13T23:20:56Z")

</div>

Why does this work: require ‘rubygems’ require ‘rubyful\_soup’ sourceFile = ‘lists.php’ desFile = ‘parsedtext.txt’ open(sourceFile).each { |x| soup = BeautifulSoup.new(x) puts soup.a } but adding .string a la: r…

---

## [Classes within classes](https://www.ruby-forum.com/t/classes-within-classes/75793)

<div class="topic-metadata">

**Author:** [@jan\_aerts\_SRI](https://www.ruby-forum.com/u/jan_aerts_SRI)\
**Replies:** 7\
**Last updated:** [November 13, 2006, 11:08pm UTC](https://www.ruby-forum.com/t/classes-within-classes/75793 "2006-11-13T23:08:54Z")

</div>

Hi all, I’m trying to create a little library for drawing my data using SVG. One of the inherent properties of the drawings that I have to make, is that each picture can contain one or more tracks with each track cont…

---

## [Help convert a Perl user to the Ruby Way](https://www.ruby-forum.com/t/help-convert-a-perl-user-to-the-ruby-way/75711)

<div class="topic-metadata">

**Author:** [@Sebastian\_Reid](https://www.ruby-forum.com/u/Sebastian_Reid)\
**Replies:** 12\
**Last updated:** [November 13, 2006, 10:40pm UTC](https://www.ruby-forum.com/t/help-convert-a-perl-user-to-the-ruby-way/75711 "2006-11-13T22:40:46Z")

</div>

Hi all. I've been working on some Ruby projects using the Rails framework and getting on well, however recently I’ve started on some projects using Ruby alone and have run into some issues as the task gets a little m…

---

## [Re: Global dynamic method definition](https://www.ruby-forum.com/t/re-global-dynamic-method-definition/75849)

<div class="topic-metadata">

**Author:** [@philpraxis](https://www.ruby-forum.com/u/philpraxis)\
**Replies:** 0\
**Last updated:** [November 13, 2006, 10:08pm UTC](https://www.ruby-forum.com/t/re-global-dynamic-method-definition/75849 "2006-11-13T22:08:38Z")

</div>

Gavin K. wrote: 789 Depending on how much you’ve simplified it, you might see if the following code helps. (I wonder if you really need to dynamically define a new method; you certainly don’t to achieve the desir…

---

## [IHelp 0.3.2 - View the documentation for an object](https://www.ruby-forum.com/t/ihelp-0-3-2-view-the-documentation-for-an-object/75846)

<div class="topic-metadata">

**Author:** [@Ilmari\_H](https://www.ruby-forum.com/u/Ilmari_H)\
**Replies:** 0\
**Last updated:** [November 13, 2006, 10:00pm UTC](https://www.ruby-forum.com/t/ihelp-0-3-2-view-the-documentation-for-an-object/75846 "2006-11-13T22:00:35Z")

</div>

IHelp lets you view the ri documentation of an object from Ruby. Perfect for irb. sudo gem install ihelp Downloads: http://rubyforge.org/frs/?group\_id=2597 Documentation: http://ihelp.rubyforge.org Project page: htt…

---

## [Re: Global dynamic method definition](https://www.ruby-forum.com/t/re-global-dynamic-method-definition/75841)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [November 13, 2006, 9:32pm UTC](https://www.ruby-forum.com/t/re-global-dynamic-method-definition/75841 "2006-11-13T21:32:29Z")

</div>

I’m trying to code in Ruby something that looks like this, when reduced and highly simplified: \[snip\] As the code suggest, what I except is: B class init B instance init 123 456 B instance init 789 Depending …

---

## [Re: Global dynamic method definition](https://www.ruby-forum.com/t/re-global-dynamic-method-definition/75842)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [November 13, 2006, 9:30pm UTC](https://www.ruby-forum.com/t/re-global-dynamic-method-definition/75842 "2006-11-13T21:30:28Z")

</div>

From: Philippe L. \[mailto:removed\_email\_address@domain.invalid\] In other words, the global @@dynamic\_method\_outputs is not cleared between D1 and D2 class definitions. Class variables are shared between a class and …

---

## [Global dynamic method definition](https://www.ruby-forum.com/t/global-dynamic-method-definition/75836)

<div class="topic-metadata">

**Author:** [@philpraxis](https://www.ruby-forum.com/u/philpraxis)\
**Replies:** 0\
**Last updated:** [November 13, 2006, 8:18pm UTC](https://www.ruby-forum.com/t/global-dynamic-method-definition/75836 "2006-11-13T20:18:04Z")

</div>

Hi, I’m trying to code in Ruby something that looks like this, when reduced and highly simplified: class B puts “B class init” @@dynamic\_method\_outputs = Array.new def initialize puts “B instance init” end def …

---

## [Columbia Maryland Ruby Codefest meeting schedule for Novembe](https://www.ruby-forum.com/t/columbia-maryland-ruby-codefest-meeting-schedule-for-novembe/75829)

<div class="topic-metadata">

**Author:** [@Jeff\_Waltzer](https://www.ruby-forum.com/u/Jeff_Waltzer)\
**Replies:** 0\
**Last updated:** [November 13, 2006, 7:05pm UTC](https://www.ruby-forum.com/t/columbia-maryland-ruby-codefest-meeting-schedule-for-novembe/75829 "2006-11-13T19:05:49Z")

</div>

The AgileMaryland Ruby codefests is continuing on through the rest of the year. We are willing to have anyone join us that is willing to learn about Ruby and to learn about Test Driven Development. We normally meet…

---

## [Sun Opens Java Under GPL](https://www.ruby-forum.com/t/sun-opens-java-under-gpl/75827)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [November 13, 2006, 6:51pm UTC](https://www.ruby-forum.com/t/sun-opens-java-under-gpl/75827 "2006-11-13T18:51:44Z")

</div>

If you haven’t heard about this, you haven’t been paying attention :slight\_smile: But here it is anyway… I know it’s not strictly Ruby-related, but it does mean that JRuby will now have a best-class open-source JVM …

---

## [Need a new Ruby book?](https://www.ruby-forum.com/t/need-a-new-ruby-book/75731)

<div class="topic-metadata">

**Author:** [@stuinzuri](https://www.ruby-forum.com/u/stuinzuri)\
**Replies:** 7\
**Last updated:** [November 13, 2006, 4:25pm UTC](https://www.ruby-forum.com/t/need-a-new-ruby-book/75731 "2006-11-13T16:25:10Z")

</div>

Hi all, Back in 2001 or so I took a look at ruby…downloaded ruby for my windows machine, bought Thomas & Hunt’s “Programming Ruby” (2001, Addison Wesley), …and promptly got caught up in a massive career change. Now …

---

## [Beginner's question about passing arrays as arguments to met](https://www.ruby-forum.com/t/beginners-question-about-passing-arrays-as-arguments-to-met/75779)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [November 13, 2006, 3:57pm UTC](https://www.ruby-forum.com/t/beginners-question-about-passing-arrays-as-arguments-to-met/75779 "2006-11-13T15:57:03Z")

</div>

I am doing a little script that builds an array (called darray) of all filenames in a directory tree. I am doing this by recursively calling a method (called enter\_dir) and passing the partially filled array (called …

---

## [Waiting for multiple child processes to finish](https://www.ruby-forum.com/t/waiting-for-multiple-child-processes-to-finish/75790)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 1\
**Last updated:** [November 13, 2006, 3:30pm UTC](https://www.ruby-forum.com/t/waiting-for-multiple-child-processes-to-finish/75790 "2006-11-13T15:30:56Z")

</div>

Why does this not work (it waits for each process to finish before launching the next): $stdout.sync = true 10.times {|i| pid = Process.fork { puts “launching process #{i}” 3.times { sleep 0.5 puts “hello from pro…

---

## [Hoe 1.1.4 Released](https://www.ruby-forum.com/t/hoe-1-1-4-released/75768)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 2\
**Last updated:** [November 13, 2006, 3:12pm UTC](https://www.ruby-forum.com/t/hoe-1-1-4-released/75768 "2006-11-13T15:12:52Z")

</div>

hoe version 1.1.4 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…

---

## [Newby question](https://www.ruby-forum.com/t/newby-question/75696)

<div class="topic-metadata">

**Author:** [@Alfonso](https://www.ruby-forum.com/u/Alfonso)\
**Replies:** 4\
**Last updated:** [November 13, 2006, 11:46am UTC](https://www.ruby-forum.com/t/newby-question/75696 "2006-11-13T11:46:33Z")

</div>

Sorry for the too elemental question (don’t know if this is the right place to make questions like this) I just have started with ruby, and don’t understand the difference “::” “.” I have read that :: is for accessing…

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

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