# Ruby

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

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

---

## [Getting method names for a Class](https://www.ruby-forum.com/t/getting-method-names-for-a-class/65428)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 1\
**Last updated:** [February 10, 2006, 7:24pm UTC](https://www.ruby-forum.com/t/getting-method-names-for-a-class/65428 "2006-02-10T19:24:34Z")

</div>

There are so many methods in Object and Module that return arrays of method names that it can be a bit confusing. Here’s a summary of my current understanding. Is any of this wrong? “instance\_methods” is a method from…

---

## [Yet another question on exceptions](https://www.ruby-forum.com/t/yet-another-question-on-exceptions/65470)

<div class="topic-metadata">

**Author:** [@cowboy\_x](https://www.ruby-forum.com/u/cowboy_x)\
**Replies:** 6\
**Last updated:** [February 10, 2006, 7:17pm UTC](https://www.ruby-forum.com/t/yet-another-question-on-exceptions/65470 "2006-02-10T19:17:43Z")

</div>

Hi, If i use File::open to open/create a file objet, and if i use a block with it, the file will be automatically close when the block ends: Now, considering this buggy snippet: begin File.open(“my\_file”) do |fic| …

---

## [XML-RPC Compatability](https://www.ruby-forum.com/t/xml-rpc-compatability/53588)

<div class="topic-metadata">

**Author:** [@gregarican](https://www.ruby-forum.com/u/gregarican)\
**Replies:** 0\
**Last updated:** [February 10, 2006, 7:13pm UTC](https://www.ruby-forum.com/t/xml-rpc-compatability/53588 "2006-02-10T19:13:33Z")

</div>

I know that this isn’t a Ruby subject, but since my XML-RPC server is hosted using Ruby’s implementation I figured someone might run across this sooner or later. I am able to talk to it using various clients based in …

---

## [How to find the current path?](https://www.ruby-forum.com/t/how-to-find-the-current-path/65475)

<div class="topic-metadata">

**Author:** [@PaatschS\_Bernd](https://www.ruby-forum.com/u/PaatschS_Bernd)\
**Replies:** 1\
**Last updated:** [February 10, 2006, 7:02pm UTC](https://www.ruby-forum.com/t/how-to-find-the-current-path/65475 "2006-02-10T19:02:57Z")

</div>

Hello, I am fairly new to ruby and wonder if there is a class/method that returns the absolute path of the current directory (the directory I execute the ruby script from)? Thanks, –Bernd

---

## [Putting plugins/config in gem](https://www.ruby-forum.com/t/putting-plugins-config-in-gem/65160)

<div class="topic-metadata">

**Author:** [@Payton\_S](https://www.ruby-forum.com/u/Payton_S)\
**Replies:** 1\
**Last updated:** [February 10, 2006, 6:30pm UTC](https://www.ruby-forum.com/t/putting-plugins-config-in-gem/65160 "2006-02-10T18:30:16Z")

</div>

I wrote a tool in ruby which I want to put entirely in a gem. The tool, however, requires a directory of plugins and a config file, which the tool should ideally be able to find in default locations. I can include th…

---

## [Re:](https://www.ruby-forum.com/t/re/65474)

<div class="topic-metadata">

**Author:** [@djwmarks](https://www.ruby-forum.com/u/djwmarks)\
**Replies:** 0\
**Last updated:** [February 10, 2006, 6:16pm UTC](https://www.ruby-forum.com/t/re/65474 "2006-02-10T18:16:21Z")

</div>

Dominic M. wrote: – This code will cause Ruby to core dump with a bus error after a number of fetches. The number is not constant. Garbage collector acting up, or am I at fault? No, it’s a bug, either in one of …

---

## [Start from the start - Ruby or ruby on rails](https://www.ruby-forum.com/t/start-from-the-start-ruby-or-ruby-on-rails/102070)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 22\
**Last updated:** [February 10, 2006, 6:03pm UTC](https://www.ruby-forum.com/t/start-from-the-start-ruby-or-ruby-on-rails/102070 "2006-02-10T18:03:38Z")

</div>

I’m looking to start developing a simple task management application with a web interface.Three views - User/Admin/Status. No database yet as i think that would be overkill. I intend to store the data in xml files for…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/65471)

<div class="topic-metadata">

**Author:** [@djwmarks](https://www.ruby-forum.com/u/djwmarks)\
**Replies:** 1\
**Last updated:** [February 10, 2006, 5:41pm UTC](https://www.ruby-forum.com/t/no-subject/65471 "2006-02-10T17:41:43Z")

</div>

– require ‘net/imap’ imap = Net::IMAP.new(‘localhost’, 993, true) imap.authenticate(‘LOGIN’,‘dom’,‘mypassword’) imap.examine(‘INBOX’) imap.search(\[‘SINCE’,‘01-Jan-2000’\]).each do |msg\_id| puts msg\_id imap.fetch(m…

---

## [Re: Yet another question on exceptions](https://www.ruby-forum.com/t/re-yet-another-question-on-exceptions/53586)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 0\
**Last updated:** [February 10, 2006, 5:10pm UTC](https://www.ruby-forum.com/t/re-yet-another-question-on-exceptions/53586 "2006-02-10T17:10:12Z")

</div>

File.open is not that stupid ;-). It uses “ensure” internally to close a file in the case of exception. Using block with open guarantees that the file will not remain open no matter what. Gennady.

---

## [Catch method calls](https://www.ruby-forum.com/t/catch-method-calls/65336)

<div class="topic-metadata">

**Author:** [@Imobach\_GonzSSSSlez](https://www.ruby-forum.com/u/Imobach_GonzSSSSlez)\
**Replies:** 2\
**Last updated:** [February 10, 2006, 4:03pm UTC](https://www.ruby-forum.com/t/catch-method-calls/65336 "2006-02-10T16:03:53Z")

</div>

Hi all, We were wondering if it’s possible to catch all method calls. I mean a kind of ‘hook’ that allow you to do something just before a method is executed. Browsing in the mailing list’s archives, we read this th…

---

## [Ruby injected into Practices of an Agile Developer](https://www.ruby-forum.com/t/ruby-injected-into-practices-of-an-agile-developer/65379)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 2\
**Last updated:** [February 10, 2006, 3:43pm UTC](https://www.ruby-forum.com/t/ruby-injected-into-practices-of-an-agile-developer/65379 "2006-02-10T15:43:19Z")

</div>

I recently had the pleasure to help review the upcoming Pragmatic Bookshelf title, /Practices of an Agile Developer/, https://pragprog.com/titles/pad/practices-of-an-agile-developer/ I don’t know if was just me, or o…

---

## [Re: Yahoo! Widgets (JavaScript) - do we have a anything like](https://www.ruby-forum.com/t/re-yahoo-widgets-javascript-do-we-have-a-anything-like/65384)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [February 10, 2006, 3:02pm UTC](https://www.ruby-forum.com/t/re-yahoo-widgets-javascript-do-we-have-a-anything-like/65384 "2006-02-10T15:02:55Z")

</div>

Hmmm, so what’s your conclusion from this debate? Fox isn’t pretty, Qt and GTK are better, but David is running away from it seeking shelter from non-Rubyish syntax… What’s your answer to Glenn’s original question,…

---

## [Compiling vim7 with ruby interpreter](https://www.ruby-forum.com/t/compiling-vim7-with-ruby-interpreter/65383)

<div class="topic-metadata">

**Author:** [@marksbrain](https://www.ruby-forum.com/u/marksbrain)\
**Replies:** 2\
**Last updated:** [February 10, 2006, 2:56pm UTC](https://www.ruby-forum.com/t/compiling-vim7-with-ruby-interpreter/65383 "2006-02-10T14:56:43Z")

</div>

Hi all, I’ve asked this on the vim list as well, so sorry for the cross posting I’m trying to compile snapshot 195 of vim 7 on kubuntu (debian) using ./configure --enable-rubyinterpreter --enable-perlinterpreter fail…

---

## [Help using facets?](https://www.ruby-forum.com/t/help-using-facets/64809)

<div class="topic-metadata">

**Author:** [@a\_non\_y\_mouse](https://www.ruby-forum.com/u/a_non_y_mouse)\
**Replies:** 6\
**Last updated:** [February 10, 2006, 2:15pm UTC](https://www.ruby-forum.com/t/help-using-facets/64809 "2006-02-10T14:15:13Z")

</div>

i just discovered facets and would like to begin using them, but am having issues: require ‘facets’ works, but i am unable to use anything suggested in the rdoc or the little stuff i’ve found online. based on http:/…

---

## [Rails AJAX question](https://www.ruby-forum.com/t/rails-ajax-question/65249)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [February 10, 2006, 1:23pm UTC](https://www.ruby-forum.com/t/rails-ajax-question/65249 "2006-02-10T13:23:36Z")

</div>

Hi all, It must be a very simple solution, but i’m just not getting it. I want to display some picture continously on a page using Rail+AJAX. Here is the snippet of code: Controller def show @albums = Album.find(:all…

---

## [Hiding warnings](https://www.ruby-forum.com/t/hiding-warnings/53579)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 2\
**Last updated:** [February 10, 2006, 12:11pm UTC](https://www.ruby-forum.com/t/hiding-warnings/53579 "2006-02-10T12:11:46Z")

</div>

I have a couple of sections of code that I don’t want any warnings displayed for. I’d still like the warnings for the rest of the application. Can I turn warnings on and off programatically? Mark

---

## [Mongrel 0.3 -- Runs Ruby On Rails](https://www.ruby-forum.com/t/mongrel-0-3-runs-ruby-on-rails/53575)

<div class="topic-metadata">

**Author:** [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Replies:** 0\
**Last updated:** [February 10, 2006, 8:54am UTC](https://www.ruby-forum.com/t/mongrel-0-3-runs-ruby-on-rails/53575 "2006-02-10T08:54:47Z")

</div>

Hello Folks, This is the long awaited release of the Mongrel HTTP library that supports Ruby On Rails. I know tons of people have been waiting for it, so I’ve got a few things to lay down first before you get all ex…

---

## [Gdiff / gpatch 0.0.2 released](https://www.ruby-forum.com/t/gdiff-gpatch-0-0-2-released/65291)

<div class="topic-metadata">

**Author:** [@Brian\_SchrSSSSder](https://www.ruby-forum.com/u/Brian_SchrSSSSder)\
**Replies:** 0\
**Last updated:** [February 10, 2006, 8:46am UTC](https://www.ruby-forum.com/t/gdiff-gpatch-0-0-2-released/65291 "2006-02-10T08:46:59Z")

</div>

Hello Group, thanks to a bugreport from David Felstad I found and removed a Bug in the gdiff/gpatch delta compression library. You can find a new version on rubyforge. http://rubyforge.org/projects/gdiff/ Enjoy, Br…

---

## [ActionMailer Inline Image Attachment Issue](https://www.ruby-forum.com/t/actionmailer-inline-image-attachment-issue/65289)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 10, 2006, 8:39am UTC](https://www.ruby-forum.com/t/actionmailer-inline-image-attachment-issue/65289 "2006-02-10T08:39:47Z")

</div>

I have been wholely unsuccessful in having an inline image attachment show in an HTML email. I have been able to create an email with plain, html and image parts, but when attempting to set the content-id for an imag…

---

## [Sandboxing eval'd code](https://www.ruby-forum.com/t/sandboxing-evald-code/102473)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 18\
**Last updated:** [February 10, 2006, 5:57am UTC](https://www.ruby-forum.com/t/sandboxing-evald-code/102473 "2006-02-10T05:57:33Z")

</div>

I’m working on a web app with complicated and ever changing business rules. On any given day, a new rule may need to be introduced - quickly. There’s not enough commonality between them to factor out and just make co…

---

## ["Ruby for Rails" in early access release](https://www.ruby-forum.com/t/ruby-for-rails-in-early-access-release/65245)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 10, 2006, 4:00am UTC](https://www.ruby-forum.com/t/ruby-for-rails-in-early-access-release/65245 "2006-02-10T04:00:41Z")

</div>

Hi – My book “Ruby for Rails” is now being released one chapter at a time through the Manning Early Access Program, with the whole book due to appear on May 1. If you’re interested, see Ruby for Rails (I guess I cou…

---

## [Re: win32 openssl help request](https://www.ruby-forum.com/t/re-win32-openssl-help-request/65205)

<div class="topic-metadata">

**Author:** [@DebaunS\_Steve](https://www.ruby-forum.com/u/DebaunS_Steve)\
**Replies:** 0\
**Last updated:** [February 10, 2006, 3:28am UTC](https://www.ruby-forum.com/t/re-win32-openssl-help-request/65205 "2006-02-10T03:28:14Z")

</div>

Hey, for anyone else who had this problem – Rolling back to a clean, fresh ruby 1.8.2-15 fixed my problems. Thanks again, bill – when something don’t work, its good to know that somewhere, someone has it working. :sli…

---

## [DICOM Tool Kit in Ruby](https://www.ruby-forum.com/t/dicom-tool-kit-in-ruby/65068)

<div class="topic-metadata">

**Author:** [@mac](https://www.ruby-forum.com/u/mac)\
**Replies:** 6\
**Last updated:** [February 10, 2006, 3:03am UTC](https://www.ruby-forum.com/t/dicom-tool-kit-in-ruby/65068 "2006-02-10T03:03:51Z")

</div>

Good Morning, Just wanted to let people know that I am working on a DICOM tool kit in Ruby. So far I have completed classes for reading in DICOM images and dumping the header. I have the netwrok layer coded completely…

---

## [Re: \[SOLUTION\] Splitting the Loot (#65)](https://www.ruby-forum.com/t/re-solution-splitting-the-loot-65/102313)

<div class="topic-metadata">

**Author:** [@Bill\_Dolinar](https://www.ruby-forum.com/u/Bill_Dolinar)\
**Replies:** 5\
**Last updated:** [February 10, 2006, 1:35am UTC](https://www.ruby-forum.com/t/re-solution-splitting-the-loot-65/102313 "2006-02-10T01:35:53Z")

</div>

=begin Here’s my solution. It uses recursion and doesn’t check unnecessary combinations. I don’t think it misses any, but that seems pretty hard to test. It checks for a valid combination by looking for the smalle…

---

## [foxGUIb 0.5.0 (for FXRuby 1.4.x)](https://www.ruby-forum.com/t/foxguib-0-5-0-for-fxruby-1-4-x/64592)

<div class="topic-metadata">

**Author:** [@henon](https://www.ruby-forum.com/u/henon)\
**Replies:** 1\
**Last updated:** [February 10, 2006, 12:48am UTC](https://www.ruby-forum.com/t/foxguib-0-5-0-for-fxruby-1-4-x/64592 "2006-02-10T00:48:29Z")

</div>

brief: foxGUIb is an interactive gui builder for fxruby. this release brings compatibility with the newest version of fxruby and a new event editor. details: foxGUIb version 0.5.0 works with FXRuby versions 1.4.x Thi…

---

## [Geocoder 0.1.0](https://www.ruby-forum.com/t/geocoder-0-1-0/64806)

<div class="topic-metadata">

**Author:** [@azgar](https://www.ruby-forum.com/u/azgar)\
**Replies:** 12\
**Last updated:** [February 9, 2006, 11:31pm UTC](https://www.ruby-forum.com/t/geocoder-0-1-0/64806 "2006-02-09T23:31:46Z")

</div>

Geocoder is a library for Ruby developers and a command-line utility that helps with converting street addresses (U.S. only for now, I’m afraid) to geographic coordinate pairs, specifically, latitude & longitude. htt…

---

## [Block\_given? vs defined? yield](https://www.ruby-forum.com/t/block-given-vs-defined-yield/102463)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 9\
**Last updated:** [February 9, 2006, 11:06pm UTC](https://www.ruby-forum.com/t/block-given-vs-defined-yield/102463 "2006-02-09T23:06:36Z")

</div>

Hi all, Is there any difference between “block\_given?” vs “defined? yield” ? I dug through the source a bit, but I had trouble finding the definition. Is the former just a wrapper for the latter? Thanks, Dan PS -…

---

## [How to improve this kind of API?](https://www.ruby-forum.com/t/how-to-improve-this-kind-of-api/65118)

<div class="topic-metadata">

**Author:** [@Lyle\_J](https://www.ruby-forum.com/u/Lyle_J)\
**Replies:** 5\
**Last updated:** [February 9, 2006, 11:03pm UTC](https://www.ruby-forum.com/t/how-to-improve-this-kind-of-api/65118 "2006-02-09T23:03:01Z")

</div>

I’m looking to make an API change for some methods in FXRuby and would appreciate some suggestions about how to improve them. The pattern shows up in several places in the code, but it always boils down to some widget …

---

## [Re: win32 openssl help request](https://www.ruby-forum.com/t/re-win32-openssl-help-request/53566)

<div class="topic-metadata">

**Author:** [@DebaunS\_Steve](https://www.ruby-forum.com/u/DebaunS_Steve)\
**Replies:** 0\
**Last updated:** [February 9, 2006, 10:59pm UTC](https://www.ruby-forum.com/t/re-win32-openssl-help-request/53566 "2006-02-09T22:59:05Z")

</div>

Thanks, bill. Hmm, maybe I’ll try downgrading to 1.8.2… sd

---

## [Win32 openssl help request](https://www.ruby-forum.com/t/win32-openssl-help-request/65157)

<div class="topic-metadata">

**Author:** [@DebaunS\_Steve](https://www.ruby-forum.com/u/DebaunS_Steve)\
**Replies:** 1\
**Last updated:** [February 9, 2006, 10:56pm UTC](https://www.ruby-forum.com/t/win32-openssl-help-request/65157 "2006-02-09T22:56:52Z")

</div>

Hi all – I just joined the list because I saw a post (from way back in 2002) about using ruby and OpenSSL on win32. I was wondering if anyone has had any recent successes, and if so, what shenanigans they involved. …

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

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