# Ruby

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

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

---

## [Issues with inheritance](https://www.ruby-forum.com/t/issues-with-inheritance/172375)

<div class="topic-metadata">

**Author:** [@Juston\_Davies](https://www.ruby-forum.com/u/Juston_Davies)\
**Replies:** 3\
**Last updated:** [July 20, 2009, 5:51pm UTC](https://www.ruby-forum.com/t/issues-with-inheritance/172375 "2009-07-20T17:51:36Z")

</div>

I’m building a large system that needs to have a data structure of things that look and act similar to one another in a kind of composition tree. Take a look at my small scale test code below: class Main def main #i…

---

## [Ruby Object listener?](https://www.ruby-forum.com/t/ruby-object-listener/172358)

<div class="topic-metadata">

**Author:** [@manimaran](https://www.ruby-forum.com/u/manimaran)\
**Replies:** 2\
**Last updated:** [July 20, 2009, 5:06pm UTC](https://www.ruby-forum.com/t/ruby-object-listener/172358 "2009-07-20T17:06:57Z")

</div>

Dear folks, I have a Hash Object. If any thing added, removed or modified in that Hash. I want to trigger a operation. How could I do that? Thanks,

---

## [Ruby has lots of love?](https://www.ruby-forum.com/t/ruby-has-lots-of-love/172309)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 4\
**Last updated:** [July 20, 2009, 4:54pm UTC](https://www.ruby-forum.com/t/ruby-has-lots-of-love/172309 "2009-07-20T16:54:17Z")

</div>

When I get errors in irb sometime, the outputs looks like this: require ‘rmagick’ LoadError: 126: The specified module could not be found. - c:/ruby18/lib/ruby/gems/1.8/gems/rmagick-2.10.0-x86-mswin32/ext/RMagick2…

---

## [\[ANN\] remembered\_evals 0.0.4 -- debugging help for eval](https://www.ruby-forum.com/t/ann-remembered-evals-0-0-4-debugging-help-for-eval/172303)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [July 20, 2009, 3:38pm UTC](https://www.ruby-forum.com/t/ann-remembered-evals-0-0-4-debugging-help-for-eval/172303 "2009-07-20T15:38:44Z")

</div>

Please to announce the release of remembered\_evals 0.0.4 Wasn’t sure if anything like it existed, so wrote this gem. remembered\_evals: A library to make debugging eval’ed code possible. This library monkey patches Ke…

---

## [Hpricot - strip out images and show first x words](https://www.ruby-forum.com/t/hpricot-strip-out-images-and-show-first-x-words/172329)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 9\
**Last updated:** [July 20, 2009, 11:50am UTC](https://www.ruby-forum.com/t/hpricot-strip-out-images-and-show-first-x-words/172329 "2009-07-20T11:50:38Z")

</div>

Hey all I have a bunch of html in p tags and i want to show shorted summary - like the first 25 words followed by ‘…’. I also want to strip out any images. I’m using hpricot for this and am finding myself writing a …

---

## [Soap4r, ssl and certificates problem](https://www.ruby-forum.com/t/soap4r-ssl-and-certificates-problem/172258)

<div class="topic-metadata">

**Author:** [@soop](https://www.ruby-forum.com/u/soop)\
**Replies:** 2\
**Last updated:** [July 20, 2009, 11:30am UTC](https://www.ruby-forum.com/t/soap4r-ssl-and-certificates-problem/172258 "2009-07-20T11:30:30Z")

</div>

Hi I’m trying to consume a SOAP service that is on an ssl endpoint. The security is public/private key. What I have so far: I have the wsdl for the service, together with the CA certificate and a .pfx file which I b…

---

## [Installing Curb Was: Re: ruby libcurl maintainer?](https://www.ruby-forum.com/t/installing-curb-was-re-ruby-libcurl-maintainer/106234)

<div class="topic-metadata">

**Author:** [@Jano\_S](https://www.ruby-forum.com/u/Jano_S)\
**Replies:** 10\
**Last updated:** [July 20, 2009, 10:01am UTC](https://www.ruby-forum.com/t/installing-curb-was-re-ruby-libcurl-maintainer/106234 "2009-07-20T10:01:15Z")

</div>

On 6/7/07, Md.elme focruzzaman Shuvo removed\_email\_address@domain.invalid wrote: \*\*\* extconf.rb failed \*\*\* Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the…

---

## [Ruby webrick/httpproxy and headers](https://www.ruby-forum.com/t/ruby-webrick-httpproxy-and-headers/172357)

<div class="topic-metadata">

**Author:** [@null0x80](https://www.ruby-forum.com/u/null0x80)\
**Replies:** 0\
**Last updated:** [July 20, 2009, 7:01am UTC](https://www.ruby-forum.com/t/ruby-webrick-httpproxy-and-headers/172357 "2009-07-20T07:01:37Z")

</div>

I’ve been trying to get some sort of confirmation or examples on this all day and have so far had no luck. Using the webrick httpproxy class(?) I have been trying to get it so that on certain sites when they are visit…

---

## [External html page include](https://www.ruby-forum.com/t/external-html-page-include/172318)

<div class="topic-metadata">

**Author:** [@staypufd](https://www.ruby-forum.com/u/staypufd)\
**Replies:** 8\
**Last updated:** [July 20, 2009, 5:26am UTC](https://www.ruby-forum.com/t/external-html-page-include/172318 "2009-07-20T05:26:37Z")

</div>

I would like to include an external html page into a .rhtml document. I know you can do it with iframes but that is not what I want. Does ruby have an include tag for that?

---

## [Removing array duplicates where a subset is unique](https://www.ruby-forum.com/t/removing-array-duplicates-where-a-subset-is-unique/172263)

<div class="topic-metadata">

**Author:** [@cremes](https://www.ruby-forum.com/u/cremes)\
**Replies:** 23\
**Last updated:** [July 20, 2009, 5:22am UTC](https://www.ruby-forum.com/t/removing-array-duplicates-where-a-subset-is-unique/172263 "2009-07-20T05:22:24Z")

</div>

I need to remove duplicates from an array of arrays. I can’t use Array#uniq because some fields are different and not part of the “key.” Here’s an example where the first 3 elements of each sub array are the “key” and…

---

## [\[Bug #1790\] \[patch\] fix error message in Addrinfo#family\_addrinfo](https://www.ruby-forum.com/t/bug-1790-patch-fix-error-message-in-addrinfo-family-addrinfo/172317)

<div class="topic-metadata">

**Author:** [@Nobuhiro\_IMAI](https://www.ruby-forum.com/u/Nobuhiro_IMAI)\
**Replies:** 1\
**Last updated:** [July 20, 2009, 4:08am UTC](https://www.ruby-forum.com/t/bug-1790-patch-fix-error-message-in-addrinfo-family-addrinfo/172317 "2009-07-20T04:08:11Z")

</div>

Bug #1790: \[patch\] fix error message in Addrinfo#family\_addrinfo http://redmine.ruby-lang.org/issues/show/1790 e$B5/I\<\<Te(B: Nobuhiro IMAI e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.9.2dev (2009-07-…

---

## [Unicorn 0.8.3 and 0.9.2](https://www.ruby-forum.com/t/unicorn-0-8-3-and-0-9-2/172350)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [July 20, 2009, 3:52am UTC](https://www.ruby-forum.com/t/unicorn-0-8-3-and-0-9-2/172350 "2009-07-20T03:52:24Z")

</div>

Unicorn is a Rack HTTP server for Unix, fast clients and nothing else These releases fixes compatibility issues the Ruby 1.9.2 preview1 release (and one existing 1.9.x issue). Note that Rails 2.3.2.1 does NOT appear …

---

## [Problem with Flickr API and net/http](https://www.ruby-forum.com/t/problem-with-flickr-api-and-net-http/172268)

<div class="topic-metadata">

**Author:** [@pinkman](https://www.ruby-forum.com/u/pinkman)\
**Replies:** 2\
**Last updated:** [July 20, 2009, 3:00am UTC](https://www.ruby-forum.com/t/problem-with-flickr-api-and-net-http/172268 "2009-07-20T03:00:59Z")

</div>

I’m writing an app that uses the flickr api via http requests. I can’t figure out if the problem I’m having is the way I’m implementing this with net/http or simply a problem with the flickr api. My code looks like …

---

## [Code Quality Analysis Initiative](https://www.ruby-forum.com/t/code-quality-analysis-initiative/172349)

<div class="topic-metadata">

**Author:** [@steveybaby](https://www.ruby-forum.com/u/steveybaby)\
**Replies:** 0\
**Last updated:** [July 20, 2009, 2:06am UTC](https://www.ruby-forum.com/t/code-quality-analysis-initiative/172349 "2009-07-20T02:06:04Z")

</div>

Hi, We (Cogent Consulting) have a project going that we think might be interesting to the people on this list. We’re building a web-based code quality analysis tool, with an initial focus on Ruby projects hosted on G…

---

## [\[QUIZ\] Decision Tree Learning (#213)](https://www.ruby-forum.com/t/quiz-decision-tree-learning-213/172326)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 0\
**Last updated:** [July 19, 2009, 8:48pm UTC](https://www.ruby-forum.com/t/quiz-decision-tree-learning-213/172326 "2009-07-19T20:48:04Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have elapsed from the time this m…

---

## [Help with relative paths using require](https://www.ruby-forum.com/t/help-with-relative-paths-using-require/172320)

<div class="topic-metadata">

**Author:** [@typemismatch](https://www.ruby-forum.com/u/typemismatch)\
**Replies:** 3\
**Last updated:** [July 19, 2009, 6:57pm UTC](https://www.ruby-forum.com/t/help-with-relative-paths-using-require/172320 "2009-07-19T18:57:06Z")

</div>

Hi, I’m having a lot of problems trying to “require” my own .rb files from a lib folder in my project. My structure is simple enough. app app\\lib app\\feature app\\feature2 I have all shared code in \\lib and in any…

---

## [\[Bug #1792\] Fixnum#& $BEy$,!"(BRational $B$J$I$r\<u$1$D$1$k(B](https://www.ruby-forum.com/t/bug-1792-fixnum-bey-brational-b-j-i-r-u-1-d-1-k-b/172322)

<div class="topic-metadata">

**Author:** [@tadayoshi\_funaba](https://www.ruby-forum.com/u/tadayoshi_funaba)\
**Replies:** 0\
**Last updated:** [July 19, 2009, 5:04pm UTC](https://www.ruby-forum.com/t/bug-1792-fixnum-bey-brational-b-j-i-r-u-1-d-1-k-b/172322 "2009-07-19T17:04:54Z")

</div>

Bug #1792: Fixnum#& e$BEy$,!"e(BRational e$B$J$I$r\<u$1$D$1$ke(B http://redmine.ruby-lang.org/issues/show/1792 e$B5/I\<\<Te(B: tadayoshi funaba e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal Target version: 1.9.x ruby -v…

---

## [\[Bug #1791\] r24205,r23960,r23892,r23871 $B$r%P%C%/%\]!\<%H$9$k(B](https://www.ruby-forum.com/t/bug-1791-r24205-r23960-r23892-r23871-b-r-p-c-h-9-k-b/172321)

<div class="topic-metadata">

**Author:** [@tadayoshi\_funaba](https://www.ruby-forum.com/u/tadayoshi_funaba)\
**Replies:** 0\
**Last updated:** [July 19, 2009, 4:20pm UTC](https://www.ruby-forum.com/t/bug-1791-r24205-r23960-r23892-r23871-b-r-p-c-h-9-k-b/172321 "2009-07-19T16:20:29Z")

</div>

Bug #1791: r24205,r23960,r23892,r23871 e$B$r%P%C%/%\]!\<%H$9$ke(B http://redmine.ruby-lang.org/issues/show/1791 e$B5/I\<\<Te(B: tadayoshi funaba e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: High e$BC4Ev\<Te(B: Yuki S. ruby -v: …

---

## [Parsing Japanese Language and Some Ruby Trivia](https://www.ruby-forum.com/t/parsing-japanese-language-and-some-ruby-trivia/52159)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 14\
**Last updated:** [July 19, 2009, 6:46am UTC](https://www.ruby-forum.com/t/parsing-japanese-language-and-some-ruby-trivia/52159 "2009-07-19T06:46:15Z")

</div>

All this talk about Unicode support and HTML parsing got me to wondering about how to parse Japanese text. There are no spaces to separate words, and though there are some modifiers, or particles in the Japanese lang…

---

## [Require\_all 1.1.0: the final nail on the coffin of require File.dirname(\_\_FILE\_\_)](https://www.ruby-forum.com/t/require-all-1-1-0-the-final-nail-on-the-coffin-of-require-file-dirname-file/172308)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 0\
**Last updated:** [July 19, 2009, 3:04am UTC](https://www.ruby-forum.com/t/require-all-1-1-0-the-final-nail-on-the-coffin-of-require-file-dirname-file/172308 "2009-07-19T03:04:13Z")

</div>

require File.dirname(FILE) seems like an incredibly common idiom. But boy is it ugly! Ruby is a beautiful language so why should we litter it with ugly statements like that? Now you don’t have to! At the suggestion…

---

## [Test-unit 2.0.3](https://www.ruby-forum.com/t/test-unit-2-0-3/172306)

<div class="topic-metadata">

**Author:** [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Replies:** 0\
**Last updated:** [July 19, 2009, 12:56am UTC](https://www.ruby-forum.com/t/test-unit-2-0-3/172306 "2009-07-19T00:56:52Z")

</div>

Hi, test-unit 2.0.3 has been released: http://test-unit.rubyforge.org/ Install: % sudo gem install test-unit Description: Test::Unit 2.x - Improved version of Test::Unit bundled in Ruby 1.8.x. Ruby 1.9.x bundles …

---

## [How to identify unpaired files in a list](https://www.ruby-forum.com/t/how-to-identify-unpaired-files-in-a-list/172302)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 4\
**Last updated:** [July 19, 2009, 12:34am UTC](https://www.ruby-forum.com/t/how-to-identify-unpaired-files-in-a-list/172302 "2009-07-19T00:34:05Z")

</div>

Hello there. I have a problem where I am trying to identify unpaired files in a directory. The directory may have files like the following: abcd0001.txt abcd0001.def.bak abcd0002.txt abcd0003.txt abcd0003.ghi.bak …

---

## [Enumerator of what?](https://www.ruby-forum.com/t/enumerator-of-what/172283)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 3\
**Last updated:** [July 18, 2009, 11:05pm UTC](https://www.ruby-forum.com/t/enumerator-of-what/172283 "2009-07-18T23:05:17Z")

</div>

Any way to ask an Enumerator what the underlying object it is enumerating for is? Eg. e = Enumerator.new(\[1,2,3\], :each) e.some\_method #=\> \[1,2,3\]

---

## [Ordering Steps in a Program](https://www.ruby-forum.com/t/ordering-steps-in-a-program/172299)

<div class="topic-metadata">

**Author:** [@maxnorman](https://www.ruby-forum.com/u/maxnorman)\
**Replies:** 2\
**Last updated:** [July 18, 2009, 10:57pm UTC](https://www.ruby-forum.com/t/ordering-steps-in-a-program/172299 "2009-07-18T22:57:46Z")

</div>

Here is a simple program that stores entered words in an array, then, once a blank line is entered, displays them sorted alphabetically (another example from Pine’s book.) Here are two ways of accomplishing this. #1: …

---

## [Regexp exclusion search - find matches NOT ending with a string?](https://www.ruby-forum.com/t/regexp-exclusion-search-find-matches-not-ending-with-a-string/172227)

<div class="topic-metadata">

**Author:** [@BrendanC](https://www.ruby-forum.com/u/BrendanC)\
**Replies:** 9\
**Last updated:** [July 18, 2009, 9:32pm UTC](https://www.ruby-forum.com/t/regexp-exclusion-search-find-matches-not-ending-with-a-string/172227 "2009-07-18T21:32:37Z")

</div>

I have the following text in a file: 1 a1.html 2 b.doc 3 c.xml 4 d.tiff 5 e.jpeg 6 f.html … I need a regexp to match lines except those that end with ending in “.html” - iow - I want lines 2-5 above. I believe …

---

## [Hash of Hash of Arrays Question](https://www.ruby-forum.com/t/hash-of-hash-of-arrays-question/172282)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 5\
**Last updated:** [July 18, 2009, 7:57pm UTC](https://www.ruby-forum.com/t/hash-of-hash-of-arrays-question/172282 "2009-07-18T19:57:41Z")

</div>

Hi all, I decided to take a deep look into hashes today and how hashes of arrays are handled. This is a bit of a grasp for me because most of the languages I’ve worked with, arrays are handled in just a few ways. Wi…

---

## [Undefined method \`\*' for nil:NilClass (NoMethodError)](https://www.ruby-forum.com/t/undefined-method-for-nil-nilclass-nomethoderror/172289)

<div class="topic-metadata">

**Author:** [@dwightschrute](https://www.ruby-forum.com/u/dwightschrute)\
**Replies:** 3\
**Last updated:** [July 18, 2009, 7:21pm UTC](https://www.ruby-forum.com/t/undefined-method-for-nil-nilclass-nomethoderror/172289 "2009-07-18T19:21:46Z")

</div>

First off, I’m a student taking Ruby for the first time, so bear with me. I’ve tried doing a web search and a search of this forum, and didn’t see anything that addressed this specifically. on line 18 of the followin…

---

## [Why some mailing list items aren't showing up in forum?](https://www.ruby-forum.com/t/why-some-mailing-list-items-arent-showing-up-in-forum/172293)

<div class="topic-metadata">

**Author:** [@dotty](https://www.ruby-forum.com/u/dotty)\
**Replies:** 0\
**Last updated:** [July 18, 2009, 7:17pm UTC](https://www.ruby-forum.com/t/why-some-mailing-list-items-arent-showing-up-in-forum/172293 "2009-07-18T19:17:18Z")

</div>

I usually use the IronRuby forum interface (I find it easier to browse through): http://www.ruby-forum.com/forum/34 But I just noticed today that there are a number of items that are ONLY showing up in the normal mai…

---

## [Need Help with another Simple Program](https://www.ruby-forum.com/t/need-help-with-another-simple-program/172269)

<div class="topic-metadata">

**Author:** [@maxnorman](https://www.ruby-forum.com/u/maxnorman)\
**Replies:** 7\
**Last updated:** [July 18, 2009, 5:42pm UTC](https://www.ruby-forum.com/t/need-help-with-another-simple-program/172269 "2009-07-18T17:42:41Z")

</div>

As an exercise out of Chris P.'s ‘Learning to Program,’ I’ve attempted to build a program that calculates the number of leap years between two given years. Here is my code: puts ‘Use this calculator to determine the n…

---

## [Daemon helper](https://www.ruby-forum.com/t/daemon-helper/172276)

<div class="topic-metadata">

**Author:** [@John\_Kelly](https://www.ruby-forum.com/u/John_Kelly)\
**Replies:** 0\
**Last updated:** [July 18, 2009, 2:21pm UTC](https://www.ruby-forum.com/t/daemon-helper/172276 "2009-07-18T14:21:07Z")

</div>

Start any program or script as a daemon. ftp://ftp.isp2dial.com/users/jak/src/dh/ My principal motivation for developing the daemon helper was to have a tool which eliminates the need for coding daemon logic in progr…

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

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