# Ruby

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

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

---

## [Self-similarity or closure in ruby](https://www.ruby-forum.com/t/self-similarity-or-closure-in-ruby/63673)

<div class="topic-metadata">

**Author:** [@uncutstone](https://www.ruby-forum.com/u/uncutstone)\
**Replies:** 9\
**Last updated:** [June 17, 2006, 11:54pm UTC](https://www.ruby-forum.com/t/self-similarity-or-closure-in-ruby/63673 "2006-06-17T23:54:28Z")

</div>

It seems In lisp, everything is expression In smalltalk, everything is object In Ruby, everything is an expression everything is an object This kind of characteristic is called closure. It is also a kind of self-s…

---

## [Overiding method in String](https://www.ruby-forum.com/t/overiding-method-in-string/63703)

<div class="topic-metadata">

**Author:** [@bmihelac](https://www.ruby-forum.com/u/bmihelac)\
**Replies:** 3\
**Last updated:** [June 17, 2006, 10:12pm UTC](https://www.ruby-forum.com/t/overiding-method-in-string/63703 "2006-06-17T22:12:19Z")

</div>

Do I do something wrong here or I cannot override method upcase in String? class String def upcase super.upcase end end “abc”.upcase Thanx for any help, Bojan M.

---

## [Not ok iterator 82 -- ./sample/test.rb:1120](https://www.ruby-forum.com/t/not-ok-iterator-82-sample-test-rb-1120/95882)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [June 17, 2006, 8:04pm UTC](https://www.ruby-forum.com/t/not-ok-iterator-82-sample-test-rb-1120/95882 "2006-06-17T20:04:36Z")

</div>

sample/test.rb e$B$N\<:GT$Ne(B 2e$B$D$a$O0J2\<$N$b$N$G$9!#e(B % ./ruby ./sample/test.rb … not ok iterator 82 – ./sample/test.rb:1120 … e$BH4$-=P$9$H!"e(B % ./ruby -ve ’ def get\_block(&block) block end def ljump\_t…

---

## [Mod\_ruby used to mimic rewrite](https://www.ruby-forum.com/t/mod-ruby-used-to-mimic-rewrite/63694)

<div class="topic-metadata">

**Author:** [@anne001](https://www.ruby-forum.com/u/anne001)\
**Replies:** 0\
**Last updated:** [June 17, 2006, 7:34pm UTC](https://www.ruby-forum.com/t/mod-ruby-used-to-mimic-rewrite/63694 "2006-06-17T19:34:06Z")

</div>

http://groups.google.com/group/comp.lang.ruby/browse\_frm/thread/92e7ea6b723b8162/e128a087206d37b2?q=mimic+rewrite&rnum=1#e128a087206d37b2 This post subject made me wonder. I would like to get the effect of a virtual ho…

---

## [Re: Get Image Size](https://www.ruby-forum.com/t/re-get-image-size/63683)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [June 17, 2006, 4:29pm UTC](https://www.ruby-forum.com/t/re-get-image-size/63683 "2006-06-17T16:29:29Z")

</div>

RMagick can also be used to get an image size (and to change images in many ways. Use,e.g., cheetah = Magick::Image.ping(“Cheetah.jpg”) Â» \[Cheetah.jpg JPEG 1024x768 DirectClass 8-bit 101684b\] p cheetah\[0\].rows Â» …

---

## [Get Image Size](https://www.ruby-forum.com/t/get-image-size/95879)

<div class="topic-metadata">

**Author:** [@ashiro](https://www.ruby-forum.com/u/ashiro)\
**Replies:** 1\
**Last updated:** [June 17, 2006, 4:10pm UTC](https://www.ruby-forum.com/t/get-image-size/95879 "2006-06-17T16:10:27Z")

</div>

Hi Ruby Folk I’m looking to create a web image leecher/downloader and I’ve hit a snag. I can’t find an easy way/library for determining the size of an image. Surely there’s an image library out there that allows yo…

---

## [Sending mail in RUBY](https://www.ruby-forum.com/t/sending-mail-in-ruby/63358)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 7\
**Last updated:** [June 17, 2006, 2:40pm UTC](https://www.ruby-forum.com/t/sending-mail-in-ruby/63358 "2006-06-17T14:40:39Z")

</div>

Can someone please point me to a simple mail utility for RUBY? I see that I have both RUBYmail and Tmail in my ruby folder on my hard drive, but, I canâ??t find any decent documentation on either. Iâ??m on Windows, no…

---

## [Re: Unicode roadmap?](https://www.ruby-forum.com/t/re-unicode-roadmap/63334)

<div class="topic-metadata">

**Author:** [@dimas](https://www.ruby-forum.com/u/dimas)\
**Replies:** 17\
**Last updated:** [June 17, 2006, 11:37am UTC](https://www.ruby-forum.com/t/re-unicode-roadmap/63334 "2006-06-17T11:37:17Z")

</div>

Almost all typical tasks on Unicode can be handled with UTF8 support in Regexp, Iconv, jcode and $KCODE=u, and unicode\[1\] library (as in unicode\_hack\[2\]) :slight\_smile: (but case-insensitive regexp don’t work for non…

---

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

<div class="topic-metadata">

**Author:** [@sgware](https://www.ruby-forum.com/u/sgware)\
**Replies:** 0\
**Last updated:** [June 17, 2006, 5:54am UTC](https://www.ruby-forum.com/t/re-lighttpd-trouble/63665 "2006-06-17T05:54:13Z")

</div>

Hi Tom, Thanks for your message about Ruby on Rails. I think you’ll find that you’re likely to get a quicker and more accurate response to your message on the Ruby on Rails specific mailing list. For subscription an…

---

## [Need help with FlexMock (or mocking in general)](https://www.ruby-forum.com/t/need-help-with-flexmock-or-mocking-in-general/95874)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [June 17, 2006, 4:31am UTC](https://www.ruby-forum.com/t/need-help-with-flexmock-or-mocking-in-general/95874 "2006-06-17T04:31:23Z")

</div>

I’m trying to mock a single method call in a controller I’m testing (this isn’t a Rails question). I only want to mock the method for certain tests while the “real” method continues to function as before in the remain…

---

## [Ruby Reports 0.4.9](https://www.ruby-forum.com/t/ruby-reports-0-4-9/63657)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [June 17, 2006, 3:08am UTC](https://www.ruby-forum.com/t/ruby-reports-0-4-9/63657 "2006-06-17T03:08:53Z")

</div>

== Ruport 0.4.9 == The “Sneakin’ Into RoR” Edition == About == Ruby Reports is a software library that aims to make the task of reporting less tedious and painful. It provides tools for data acquisition, database in…

---

## [Ruby-prof for windows](https://www.ruby-forum.com/t/ruby-prof-for-windows/62965)

<div class="topic-metadata">

**Author:** [@charlieuk](https://www.ruby-forum.com/u/charlieuk)\
**Replies:** 2\
**Last updated:** [June 17, 2006, 2:35am UTC](https://www.ruby-forum.com/t/ruby-prof-for-windows/62965 "2006-06-17T02:35:36Z")

</div>

Hi everyone, I’ve ported Shugo M. excellent ruby-prof C extension to Windows. ruby-prof is a code profiler like the built-in ruby profiler but is orders of magnitude faster. I’ve sent my patch to Shugo. In the meant…

---

## [For those who \*ALMOST\* signed up for RailsDay](https://www.ruby-forum.com/t/for-those-who-almost-signed-up-for-railsday/63654)

<div class="topic-metadata">

**Author:** [@kate\_rhodes](https://www.ruby-forum.com/u/kate_rhodes)\
**Replies:** 0\
**Last updated:** [June 17, 2006, 1:59am UTC](https://www.ruby-forum.com/t/for-those-who-almost-signed-up-for-railsday/63654 "2006-06-17T01:59:21Z")

</div>

With RailsDay mere hours away I thought I’d throw this thought out there for those of you who seriously considered doing rails day but didn’t actually get signed up for it. Maybe you missed the cutoff, maybe you think…

---

## [Processing mixed content with REXML](https://www.ruby-forum.com/t/processing-mixed-content-with-rexml/63313)

<div class="topic-metadata">

**Author:** [@xmg-eric](https://www.ruby-forum.com/u/xmg-eric)\
**Replies:** 25\
**Last updated:** [June 17, 2006, 1:44am UTC](https://www.ruby-forum.com/t/processing-mixed-content-with-rexml/63313 "2006-06-17T01:44:05Z")

</div>

Element.each\_element gives the element children And Element.texts gives the text nodes. But how do you process the complete list of children, in order?

---

## [Testing and STDOUT](https://www.ruby-forum.com/t/testing-and-stdout/63606)

<div class="topic-metadata">

**Author:** [@miken700](https://www.ruby-forum.com/u/miken700)\
**Replies:** 4\
**Last updated:** [June 17, 2006, 12:44am UTC](https://www.ruby-forum.com/t/testing-and-stdout/63606 "2006-06-17T00:44:34Z")

</div>

I have a question with using Test::Unit::TestCase / RSpec (probably applies to both I think). I would like to test the output to STDOUT from the code that I’m testing as well as the results from it. Is there a prefere…

---

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

<div class="topic-metadata">

**Author:** [@Hal\_F](https://www.ruby-forum.com/u/Hal_F)\
**Replies:** 46\
**Last updated:** [June 16, 2006, 11:43pm UTC](https://www.ruby-forum.com/t/ruby-forum-com/95562 "2006-06-16T23:43:57Z")

</div>

Who owns ruby-forum.com and why is it connected to the mailing list? Is this policy open for discussion? Hal

---

## [Require and Cron](https://www.ruby-forum.com/t/require-and-cron/63631)

<div class="topic-metadata">

**Author:** [@siguva](https://www.ruby-forum.com/u/siguva)\
**Replies:** 3\
**Last updated:** [June 16, 2006, 11:15pm UTC](https://www.ruby-forum.com/t/require-and-cron/63631 "2006-06-16T23:15:15Z")

</div>

I have another ruby file that is required to run my app. require ‘QuickBaseClient’ #this points to the QuickBaseClient.rb in the same directory as the file I am running. When I run this script from the command line: …

---

## [Undefined method (noMethodError)](https://www.ruby-forum.com/t/undefined-method-nomethoderror/63640)

<div class="topic-metadata">

**Author:** [@parvg](https://www.ruby-forum.com/u/parvg)\
**Replies:** 9\
**Last updated:** [June 16, 2006, 11:07pm UTC](https://www.ruby-forum.com/t/undefined-method-nomethoderror/63640 "2006-06-16T23:07:46Z")

</div>

I’m new to ruby coming from Java/C#. I keep on getting an error “undefined method \`nextcell’ for TestClass:Class (NoMethodError)” , when i try to run the code below. if somebody can provide some insight, that would be…

---

## [Lighttpd trouble](https://www.ruby-forum.com/t/lighttpd-trouble/63647)

<div class="topic-metadata">

**Author:** [@tma](https://www.ruby-forum.com/u/tma)\
**Replies:** 1\
**Last updated:** [June 16, 2006, 11:04pm UTC](https://www.ruby-forum.com/t/lighttpd-trouble/63647 "2006-06-16T23:04:02Z")

</div>

The mac installation I put in uses lighttpd, which crashes when I try to run it with ruby script/server It crashes because the variable ‘CWD’ in the conf file for lighttpd is not defined. It should be the base (root…

---

## [REXML inconsistency in Element methods](https://www.ruby-forum.com/t/rexml-inconsistency-in-element-methods/63644)

<div class="topic-metadata">

**Author:** [@xmg-eric](https://www.ruby-forum.com/u/xmg-eric)\
**Replies:** 0\
**Last updated:** [June 16, 2006, 10:06pm UTC](https://www.ruby-forum.com/t/rexml-inconsistency-in-element-methods/63644 "2006-06-16T22:06:15Z")

</div>

value() is defined on Elements of type :attribute and :text, but not :comment. For :comment, you use to\_s. (to\_s may work for others, as well. Haven’t tried.) Element .node\_type --returns a symbol :attribute – use…

---

## [More rebinding blocks](https://www.ruby-forum.com/t/more-rebinding-blocks/63617)

<div class="topic-metadata">

**Author:** [@Mat\_S](https://www.ruby-forum.com/u/Mat_S)\
**Replies:** 5\
**Last updated:** [June 16, 2006, 9:46pm UTC](https://www.ruby-forum.com/t/more-rebinding-blocks/63617 "2006-06-16T21:46:40Z")

</div>

Sorry to beat a dead horse, here. But after reading through the older discussions on google groups, I’m still left with a question. Arbitrarily rebinding blocks seems like it would be amazingly useful. Is there some…

---

## [Absolute paths in $"](https://www.ruby-forum.com/t/absolute-paths-in/63514)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [June 16, 2006, 8:13pm UTC](https://www.ruby-forum.com/t/absolute-paths-in/63514 "2006-06-16T20:13:02Z")

</div>

Any chance Ruby 1.8.5 will have absolute paths in $" instead of relative ones? I know that’s planned for 2.0 but I sure could use it now. T.

---

## [License question](https://www.ruby-forum.com/t/license-question/63541)

<div class="topic-metadata">

**Author:** [@darren\_kirby](https://www.ruby-forum.com/u/darren_kirby)\
**Replies:** 5\
**Last updated:** [June 16, 2006, 7:45pm UTC](https://www.ruby-forum.com/t/license-question/63541 "2006-06-16T19:45:25Z")

</div>

Hello all, I have translated a Perl module that grabs info from wma files to Ruby. This module’s license says: This library is free software; you can redistribute it and/or modify it under the same terms as Perl it…

---

## [Net-Ping Timeout Error](https://www.ruby-forum.com/t/net-ping-timeout-error/63470)

<div class="topic-metadata">

**Author:** [@Anoop\_Chandran](https://www.ruby-forum.com/u/Anoop_Chandran)\
**Replies:** 4\
**Last updated:** [June 16, 2006, 7:16pm UTC](https://www.ruby-forum.com/t/net-ping-timeout-error/63470 "2006-06-16T19:16:56Z")

</div>

Hi all, I am getting the following error /usr/lib/ruby/site\_ruby/1.8/net/ping.rb:83:in ping?': undefined methodclose’ for #\<Timeout::Error: execution expired\> (NoMethodError) I get this error while trying to ping mult…

---

## [0.prime\_division](https://www.ruby-forum.com/t/0-prime-division/63620)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 0\
**Last updated:** [June 16, 2006, 7:10pm UTC](https://www.ruby-forum.com/t/0-prime-division/63620 "2006-06-16T19:10:37Z")

</div>

e$B@\>;3OB9-$G$9!#e(B ruby -v -r mathn -e ‘0.prime\_division’ e$B$,L58B%k!\<%W$KF~$C$F$7$^$C$F$+$($C$F$3$J$$$h$&$K8+$($^$9!#e(B e$BBP1~$7$F$$$J$$$N$J$i!"2?$+Nc30$K$J$C$?J}$,e(B e$BNI$$$N$G$O$J$$$G$7$g$&$+e(B?

---

## [Ruby openssl problem](https://www.ruby-forum.com/t/ruby-openssl-problem/63616)

<div class="topic-metadata">

**Author:** [@Ed\_Silva](https://www.ruby-forum.com/u/Ed_Silva)\
**Replies:** 0\
**Last updated:** [June 16, 2006, 6:17pm UTC](https://www.ruby-forum.com/t/ruby-openssl-problem/63616 "2006-06-16T18:17:21Z")

</div>

Hi all, I have run into a problem using the ruby openssl module to do blowfish encryption. I have found that messages encrypted in ruby can de decrypted by ruby, but messages encrypted in perl or php cannot be decryp…

---

## [Win32OLE](https://www.ruby-forum.com/t/win32ole/95844)

<div class="topic-metadata">

**Author:** [@parvg](https://www.ruby-forum.com/u/parvg)\
**Replies:** 2\
**Last updated:** [June 16, 2006, 6:06pm UTC](https://www.ruby-forum.com/t/win32ole/95844 "2006-06-16T18:06:50Z")

</div>

Hi, Can sombody point me to the API (documentation) for Win32Ole in Ruby? I’m interested in manipulating Excel files, so i would like to see all the avaliable classes and methods i can work with. if anybody knows of …

---

## [Problems ftp'ing](https://www.ruby-forum.com/t/problems-ftping/63608)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 3\
**Last updated:** [June 16, 2006, 5:52pm UTC](https://www.ruby-forum.com/t/problems-ftping/63608 "2006-06-16T17:52:09Z")

</div>

I keep getting errors with this simple ftp script. Real names and passwords have been changed to protect the innocent. I just need to send the input files to the ftp target without the extensions they have. Thanks for…

---

## [Capturing STDOUT to a Logger](https://www.ruby-forum.com/t/capturing-stdout-to-a-logger/95855)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 2\
**Last updated:** [June 16, 2006, 5:40pm UTC](https://www.ruby-forum.com/t/capturing-stdout-to-a-logger/95855 "2006-06-16T17:40:25Z")

</div>

I’m using Test::Unit and i want to capture the console messages to a log file - But im already using Logger to capture custom assertions, messages etc. The problem with Logger as it is is that if an error occurs in th…

---

## [API style preference? a.b=c or a(:b=\>c)](https://www.ruby-forum.com/t/api-style-preference-a-b-c-or-a-b-c/63588)

<div class="topic-metadata">

**Author:** [@kirkhoward](https://www.ruby-forum.com/u/kirkhoward)\
**Replies:** 10\
**Last updated:** [June 16, 2006, 4:27pm UTC](https://www.ruby-forum.com/t/api-style-preference-a-b-c-or-a-b-c/63588 "2006-06-16T16:27:52Z")

</div>

I’m writing a number of lines lately that look something like this: DocRootNames = \[nil,‘docs’,‘doc’,‘htdocs’,‘htdoc’\].freeze unless const\_defined? :DocrootNames So, in my pre-cup-of-tea stupor this morning, I was thi…

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

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