# Ruby

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

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

---

## [ANN: yummy 0.0.2 has been released](https://www.ruby-forum.com/t/ann-yummy-0-0-2-has-been-released/107559)

<div class="topic-metadata">

**Author:** [@bryanl](https://www.ruby-forum.com/u/bryanl)\
**Replies:** 0\
**Last updated:** [June 23, 2007, 5:31am UTC](https://www.ruby-forum.com/t/ann-yummy-0-0-2-has-been-released/107559 "2007-06-23T05:31:09Z")

</div>

yummy version 0.0.2 has been released! http://smartic.us/projects/yummy ruby del.icio.us api Changes: 0.0.2 / 2007-06-22 releases to rubyforge should be automatic now http://smartic.us/projects/yummy

---

## [RubyGarden regularly down](https://www.ruby-forum.com/t/rubygarden-regularly-down/107557)

<div class="topic-metadata">

**Author:** [@Erwin\_A](https://www.ruby-forum.com/u/Erwin_A)\
**Replies:** 0\
**Last updated:** [June 23, 2007, 4:50am UTC](https://www.ruby-forum.com/t/rubygarden-regularly-down/107557 "2007-06-23T04:50:07Z")

</div>

Hi, It seems every time I try to bring up a page on http://rubygarden.org, it’s down. Doesn’t seem to be a DNS problem, because http://faq.rubygarden.org is hosted at the same address and is working fine. Does anyo…

---

## [Regexp grouping question](https://www.ruby-forum.com/t/regexp-grouping-question/93406)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [June 22, 2007, 11:33pm UTC](https://www.ruby-forum.com/t/regexp-grouping-question/93406 "2007-06-22T23:33:25Z")

</div>

Hi I’m trying to remove unecessary white space around equals signs and after semicolons compressed = “foo = bar; red = herring;” compressed = compressed.gsub(/\\s\*(\[=;\])\\s\*/,"#$1") puts compressed produces foobarr…

---

## [Assign greater of two ints?](https://www.ruby-forum.com/t/assign-greater-of-two-ints/107544)

<div class="topic-metadata">

**Author:** [@eclubb](https://www.ruby-forum.com/u/eclubb)\
**Replies:** 2\
**Last updated:** [June 22, 2007, 10:15pm UTC](https://www.ruby-forum.com/t/assign-greater-of-two-ints/107544 "2007-06-22T22:15:45Z")

</div>

Is there a more concise way to write this? a = 5 b = “test123” if a \< b.length a = b.length end –or– a = b.length if a \< b.length Earle

---

## [All in MiniExifTool](https://www.ruby-forum.com/t/all-in-miniexiftool/107396)

<div class="topic-metadata">

**Author:** [@mtnbiker](https://www.ruby-forum.com/u/mtnbiker)\
**Replies:** 4\
**Last updated:** [June 22, 2007, 9:31pm UTC](https://www.ruby-forum.com/t/all-in-miniexiftool/107396 "2007-06-22T21:31:29Z")

</div>

I wanted to list all the EXIF data for a photo. Is there a method for that? Equivalent to ExifTool: exiftool -h filepath Thanks

---

## [Method#to\_proc$B$HB?CM(B](https://www.ruby-forum.com/t/method-to-proc-b-hb-cm-b/107158)

<div class="topic-metadata">

**Author:** [@Masahiro\_SSSSSBSr0](https://www.ruby-forum.com/u/Masahiro_SSSSSBSr0)\
**Replies:** 2\
**Last updated:** [June 22, 2007, 7:59pm UTC](https://www.ruby-forum.com/t/method-to-proc-b-hb-cm-b/107158 "2007-06-22T19:59:16Z")

</div>

e$B\<r0f$G$9!#e(B Method#to\_proce$B$N@bL@$H$7$F!“e(B1.9e$B$Ne(Bmethod\_proc()e$B$N%=!\<%9$K$O0J2\<$N$h$&$Je(B e$B%3%a%s%H$,$”$j$^$9$,!"$3$l$O\<B:\]$N?6$kIq$$$H$O0lCW$7$F$$$^$;$s!#e(B /\* \* class Method \* def to\_proc \* …

---

## [Anyone, anyone...Bueller?](https://www.ruby-forum.com/t/anyone-anyone-bueller/107523)

<div class="topic-metadata">

**Author:** [@gregarican](https://www.ruby-forum.com/u/gregarican)\
**Replies:** 2\
**Last updated:** [June 22, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/anyone-anyone-bueller/107523 "2007-06-22T18:06:54Z")

</div>

There’s a Rubyforge project I admin that I unfortunately don’t have time to adequately maintain anymore. It’s probably about 75% completed and if anyone is interested please let me know and I’d be happy to turn over t…

---

## [How do I find out what Exceptions a class may raise](https://www.ruby-forum.com/t/how-do-i-find-out-what-exceptions-a-class-may-raise/107531)

<div class="topic-metadata">

**Author:** [@benemson](https://www.ruby-forum.com/u/benemson)\
**Replies:** 0\
**Last updated:** [June 22, 2007, 5:58pm UTC](https://www.ruby-forum.com/t/how-do-i-find-out-what-exceptions-a-class-may-raise/107531 "2007-06-22T17:58:54Z")

</div>

at Been using the ActionMailer class, i.e. class SimpleMailer \< ActionMailer::Base def simple\_message(to,sender,subject\_line,message) from sender recipients to subject subject\_line body message end end But what …

---

## [What happened to Net::HTTP::Options?](https://www.ruby-forum.com/t/what-happened-to-net-options/107529)

<div class="topic-metadata">

**Author:** [@shadowcipher](https://www.ruby-forum.com/u/shadowcipher)\
**Replies:** 0\
**Last updated:** [June 22, 2007, 5:21pm UTC](https://www.ruby-forum.com/t/what-happened-to-net-options/107529 "2007-06-22T17:21:48Z")

</div>

I’m running ruby 1.8.6 (2007-03-13 patchlevel 0) I had written a script previously that used Net::HTTP::Options, but now after upgrading ruby my script no longer works. undefined method \`options’ for #\<Net::HTTP from…

---

## [Do You Understand Regular Expressions?](https://www.ruby-forum.com/t/do-you-understand-regular-expressions/107377)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 19\
**Last updated:** [June 22, 2007, 3:56pm UTC](https://www.ruby-forum.com/t/do-you-understand-regular-expressions/107377 "2007-06-22T15:56:41Z")

</div>

Hi all. I’m pretty new to Ruby and that sort of thing, and I’m having a few problems understanding regular expressions. I’m hoping one of you can point me in the right direction. I want to replace an entire string wi…

---

## [Newbie question - undefined method \`replace\_session\_timeout'](https://www.ruby-forum.com/t/newbie-question-undefined-method-replace-session-timeout/107480)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [June 22, 2007, 2:28pm UTC](https://www.ruby-forum.com/t/newbie-question-undefined-method-replace-session-timeout/107480 "2007-06-22T14:28:23Z")

</div>

Hi, I’m a newbie to ruby, and programming really… I’m trying to write a simple script that will make a small change to a text file. Here’s the code: #script for changing the sessionState timeout to 30 minutes f = F…

---

## [Howto add automatically a soap header in soap4r?](https://www.ruby-forum.com/t/howto-add-automatically-a-soap-header-in-soap4r/107513)

<div class="topic-metadata">

**Author:** [@Henning\_Panke](https://www.ruby-forum.com/u/Henning_Panke)\
**Replies:** 0\
**Last updated:** [June 22, 2007, 1:11pm UTC](https://www.ruby-forum.com/t/howto-add-automatically-a-soap-header-in-soap4r/107513 "2007-06-22T13:11:13Z")

</div>

Hi all, I must access a webservices that expect the SOAP action as a soap header. I want to add this soap header automatically but I dont know where to hook in. My actual solution is to create a header and remove it …

---

## [Everything in ruby is an object?](https://www.ruby-forum.com/t/everything-in-ruby-is-an-object/107497)

<div class="topic-metadata">

**Author:** [@bowenmark](https://www.ruby-forum.com/u/bowenmark)\
**Replies:** 5\
**Last updated:** [June 22, 2007, 1:05pm UTC](https://www.ruby-forum.com/t/everything-in-ruby-is-an-object/107497 "2007-06-22T13:05:10Z")

</div>

Hey folks, I'm reading the tutorial on Ruby located at http://www.rubycentral.com/book/ In it the guys state that everything in Ruby is an object. I was just wondering if that applies to Boolean expressions i.e. t…

---

## [Problem with gems](https://www.ruby-forum.com/t/problem-with-gems/107448)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [June 22, 2007, 12:57pm UTC](https://www.ruby-forum.com/t/problem-with-gems/107448 "2007-06-22T12:57:10Z")

</div>

Hello everybody ! I just installed some gem but when I want to use it Ruby comes up with a “no such file to load” message. Has anyone an idea where gem installs the packages ? Or what did I do wrong ? Dominik

---

## [Rcodetools 0.7.0 (TDC: "test-driven, 100% accurate completio](https://www.ruby-forum.com/t/rcodetools-0-7-0-tdc-test-driven-100-accurate-completio/107512)

<div class="topic-metadata">

**Author:** [@tulkas](https://www.ruby-forum.com/u/tulkas)\
**Replies:** 0\
**Last updated:** [June 22, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/rcodetools-0-7-0-tdc-test-driven-100-accurate-completio/107512 "2007-06-22T12:34:08Z")

</div>

rcodetools is a collection of Ruby code manipulation tools. It includes xmpfilter and editor-independent Ruby development helper tools, as well as emacs and vim interfaces. Currently, rcodetools comprises: xmpfilte…

---

## [Calling Ruby from within Ruby under Windows](https://www.ruby-forum.com/t/calling-ruby-from-within-ruby-under-windows/107405)

<div class="topic-metadata">

**Author:** [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Replies:** 2\
**Last updated:** [June 22, 2007, 11:14am UTC](https://www.ruby-forum.com/t/calling-ruby-from-within-ruby-under-windows/107405 "2007-06-22T11:14:55Z")

</div>

Ruby 1.8.6 after installation has associated the file extension .rb within Windows to Ruby. Hence I can call a Ruby program directly from the Windows command line: ruby t2.rb t2.rb t2 all work the same. This does …

---

## [Help with a common problem](https://www.ruby-forum.com/t/help-with-a-common-problem/107470)

<div class="topic-metadata">

**Author:** [@kevin](https://www.ruby-forum.com/u/kevin)\
**Replies:** 2\
**Last updated:** [June 22, 2007, 11:06am UTC](https://www.ruby-forum.com/t/help-with-a-common-problem/107470 "2007-06-22T11:06:54Z")

</div>

I’m a very new programmer and was reffered to Ruby from a friend. I followed this great tutorial Getting Started - Learn to Program and got up to chapter 3. Something stoped working when trying to “gets” and know i ge…

---

## [Why doesn't rescue catch Exception by default?](https://www.ruby-forum.com/t/why-doesnt-rescue-catch-exception-by-default/107487)

<div class="topic-metadata">

**Author:** [@seth](https://www.ruby-forum.com/u/seth)\
**Replies:** 1\
**Last updated:** [June 22, 2007, 10:13am UTC](https://www.ruby-forum.com/t/why-doesnt-rescue-catch-exception-by-default/107487 "2007-06-22T10:13:46Z")

</div>

From: http://www.rubycentral.com/book/tut\_exceptions.html — BEGIN When you need to raise an exception, you can use one of the built-in Exception classes, or you can create one of your own. If you create your own, yo…

---

## [Newbie Tk Problem](https://www.ruby-forum.com/t/newbie-tk-problem/107493)

<div class="topic-metadata">

**Author:** [@danielj](https://www.ruby-forum.com/u/danielj)\
**Replies:** 1\
**Last updated:** [June 22, 2007, 9:45am UTC](https://www.ruby-forum.com/t/newbie-tk-problem/107493 "2007-06-22T09:45:43Z")

</div>

Windows can’t find my tk84.dll when I try to require ‘tk’ Any ideas? I reinstalled Ruby and that didn’t work… I used the one click installer and I don’t know how to use the binaries if that is the problem.

---

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

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 16\
**Last updated:** [June 22, 2007, 6:59am UTC](https://www.ruby-forum.com/t/ruby-extensions-question/107433 "2007-06-22T06:59:39Z")

</div>

So I’m getting slightly confused with writing ruby extensions and what is best for performance. I’m working on writing an extension for Ruby, but almost everything i’m doing at the C level is with rb\_\* functions using…

---

## [Dynamic method creation](https://www.ruby-forum.com/t/dynamic-method-creation/107483)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 2\
**Last updated:** [June 22, 2007, 6:11am UTC](https://www.ruby-forum.com/t/dynamic-method-creation/107483 "2007-06-22T06:11:53Z")

</div>

Hi! Is there a way to create a regular expression type method and pull the pieces from that? I can find how to add methods dynamically but what I really need is something like this. def \_requires id self.requires n…

---

## [Keybox 1.1.1 Released](https://www.ruby-forum.com/t/keybox-1-1-1-released/107485)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 0\
**Last updated:** [June 22, 2007, 5:30am UTC](https://www.ruby-forum.com/t/keybox-1-1-1-released/107485 "2007-06-22T05:30:21Z")

</div>

keybox version 1.1.1 has been released. http://keybox.rubyforge.org Keybox is a set of command line applications and ruby libraries for secure password storage and password generation. {{ Changelog for Version 1.1.1 …

---

## [Code source](https://www.ruby-forum.com/t/code-source/107449)

<div class="topic-metadata">

**Author:** [@juan\_pedro\_meriSSSS](https://www.ruby-forum.com/u/juan_pedro_meriSSSS)\
**Replies:** 2\
**Last updated:** [June 22, 2007, 4:22am UTC](https://www.ruby-forum.com/t/code-source/107449 "2007-06-22T04:22:19Z")

</div>

I need the code source of ruby but add a new component, when i found source of ruby?

---

## [Reflecting on methods](https://www.ruby-forum.com/t/reflecting-on-methods/107431)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [June 22, 2007, 3:24am UTC](https://www.ruby-forum.com/t/reflecting-on-methods/107431 "2007-06-22T03:24:14Z")

</div>

Hi guys ! I’m a little bit confused about the right way to get the methods of a class/module. For this class class Test public def Test.pub\_class\_meth; end protected def Test.prot\_class\_meth; end private def Te…

---

## [Ruby integrated with Flash in place of actionscript](https://www.ruby-forum.com/t/ruby-integrated-with-flash-in-place-of-actionscript/107283)

<div class="topic-metadata">

**Author:** [@rmac217](https://www.ruby-forum.com/u/rmac217)\
**Replies:** 9\
**Last updated:** [June 22, 2007, 2:25am UTC](https://www.ruby-forum.com/t/ruby-integrated-with-flash-in-place-of-actionscript/107283 "2007-06-22T02:25:08Z")

</div>

I love flash (there are just some things you can’t do with html/ajax), but I hate actionscript. After programming in a superior language like ruby, I have a hard time coming back to actionscript and all its clumsines…

---

## [How do I intercept creation of fundatmental types, eg. \[\]](https://www.ruby-forum.com/t/how-do-i-intercept-creation-of-fundatmental-types-eg/107446)

<div class="topic-metadata">

**Author:** [@mobiledurant](https://www.ruby-forum.com/u/mobiledurant)\
**Replies:** 5\
**Last updated:** [June 22, 2007, 1:52am UTC](https://www.ruby-forum.com/t/how-do-i-intercept-creation-of-fundatmental-types-eg/107446 "2007-06-22T01:52:21Z")

</div>

Hi, I’m new to ruby and I love the introspection and metaprogramming capabilities. However, I’m having a problem. I want to count the number of arrays created. I can only intercept and redefine explicit calls to Arra…

---

## [Qt::QFileDialog problem](https://www.ruby-forum.com/t/qt-qfiledialog-problem/107386)

<div class="topic-metadata">

**Author:** [@olbrich](https://www.ruby-forum.com/u/olbrich)\
**Replies:** 2\
**Last updated:** [June 22, 2007, 12:18am UTC](https://www.ruby-forum.com/t/qt-qfiledialog-problem/107386 "2007-06-22T00:18:58Z")

</div>

Please read the thread I made here: http://forums.gentoo.org/viewtopic-t-566375.html If more details are required let me know.

---

## [If == any item in an array](https://www.ruby-forum.com/t/if-any-item-in-an-array/107357)

<div class="topic-metadata">

**Author:** [@mtnbiker](https://www.ruby-forum.com/u/mtnbiker)\
**Replies:** 10\
**Last updated:** [June 22, 2007, 12:06am UTC](https://www.ruby-forum.com/t/if-any-item-in-an-array/107357 "2007-06-22T00:06:54Z")

</div>

I’d like to write something like PhotoEndings = %w\[JPG,MRW,JPE\] MovieEndings = %w\[AVI\] case ext # determined from the photo file name when PhotoEndings when MovieEndings else end I don’t have to use case, any…

---

## [Problems with Rubyzip](https://www.ruby-forum.com/t/problems-with-rubyzip/107462)

<div class="topic-metadata">

**Author:** [@billbell52](https://www.ruby-forum.com/u/billbell52)\
**Replies:** 0\
**Last updated:** [June 21, 2007, 11:40pm UTC](https://www.ruby-forum.com/t/problems-with-rubyzip/107462 "2007-06-21T23:40:52Z")

</div>

I am having a problem with Rubyzip when I try to archive numerous large files. It runs fine for 63 files. The zip is about 250Meg when it fails. If I skip the file that fails then the next file fails. I am waiting…

---

## [String search](https://www.ruby-forum.com/t/string-search/107454)

<div class="topic-metadata">

**Author:** [@rorjeff](https://www.ruby-forum.com/u/rorjeff)\
**Replies:** 1\
**Last updated:** [June 21, 2007, 11:33pm UTC](https://www.ruby-forum.com/t/string-search/107454 "2007-06-21T23:33:49Z")

</div>

@speed += 1 if sp.slice(8…13) == “03X16” I’ve pulled bits 8 though 13 from my string and want to see if it equal 03X16 where X is number 0-9. Something like “grep -c 03.16 temp” would work. I’ve tried \\d of course t…

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

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