# Ruby

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

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

---

## [Exposing Ancestor Public Methods/ Book Reccomendation](https://www.ruby-forum.com/t/exposing-ancestor-public-methods-book-reccomendation/132164)

<div class="topic-metadata">

**Author:** [@dsoftware](https://www.ruby-forum.com/u/dsoftware)\
**Replies:** 1\
**Last updated:** [March 17, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/exposing-ancestor-public-methods-book-reccomendation/132164 "2008-03-17T15:17:11Z")

</div>

Hello, I am trying to access some attr\_accessor and public/protected methods from an inheriting class or module. class Foo: def initialize(); end def some\_method(): print “Foo are you?\\n” end end class Bar \< Fo…

---

## [Replacing based on regular ecpressions](https://www.ruby-forum.com/t/replacing-based-on-regular-ecpressions/132154)

<div class="topic-metadata">

**Author:** [@T\_K](https://www.ruby-forum.com/u/T_K)\
**Replies:** 1\
**Last updated:** [March 17, 2008, 2:11pm UTC](https://www.ruby-forum.com/t/replacing-based-on-regular-ecpressions/132154 "2008-03-17T14:11:06Z")

</div>

Hi, I’m writing a ruby script that does a batch search-and-replace command. In each line of the file that is opened, I would like to delete part of the entire part matched by a regrex. For example, line.gsub(/(Tennis…

---

## [Cipher](https://www.ruby-forum.com/t/cipher/132102)

<div class="topic-metadata">

**Author:** [@Max\_Z](https://www.ruby-forum.com/u/Max_Z)\
**Replies:** 7\
**Last updated:** [March 17, 2008, 11:34am UTC](https://www.ruby-forum.com/t/cipher/132102 "2008-03-17T11:34:08Z")

</div>

I am trying to make a program that takes what you input, and encrypts it by turning a to p, b to q, z to b, etc. It moves the letter 2 spaces to the left (a to c) and moves it down (c to p). (See below.) Even though …

---

## [DLR resources](https://www.ruby-forum.com/t/dlr-resources/132124)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 1\
**Last updated:** [March 17, 2008, 10:45am UTC](https://www.ruby-forum.com/t/dlr-resources/132124 "2008-03-17T10:45:22Z")

</div>

I have started compiling a list of DLR resources in this blog - IronPython Blog | Microsoft Learn. I will try and keep it updated so that folks have one place to start when hunting for DLR information. If you have oth…

---

## [It seems that rb\_thread\_wait\_fd() doesn't work in 1.8.6](https://www.ruby-forum.com/t/it-seems-that-rb-thread-wait-fd-doesnt-work-in-1-8-6/132078)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 17, 2008, 9:52am UTC](https://www.ruby-forum.com/t/it-seems-that-rb-thread-wait-fd-doesnt-work-in-1-8-6/132078 "2008-03-17T09:52:32Z")

</div>

Here is a test: http://s3.amazonaws.com/four.livejournal/20080316/rb\_thread\_wait\_fd.tar.gz compile it: ruby extconf.rb && make run it: ruby test.rb it should not exit. Ruby 1.9.0 has the correct behavior, but 1.8.6 …

---

## [Ruby-mode.el and tabbing](https://www.ruby-forum.com/t/ruby-mode-el-and-tabbing/132071)

<div class="topic-metadata">

**Author:** [@Frank\_Wilson](https://www.ruby-forum.com/u/Frank_Wilson)\
**Replies:** 4\
**Last updated:** [March 17, 2008, 9:34am UTC](https://www.ruby-forum.com/t/ruby-mode-el-and-tabbing/132071 "2008-03-17T09:34:45Z")

</div>

I’m starting to learn RoR on emacs with the ecb and rails plugins. I find myself wanting to type maps in the following way foo = bar.mkfoo( :bangers =\> “mash”, :fish =\> “chips” ) but ruby-mode (i think) keeps doing…

---

## [Looking for an appropiate parser generator](https://www.ruby-forum.com/t/looking-for-an-appropiate-parser-generator/132048)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 5\
**Last updated:** [March 17, 2008, 6:36am UTC](https://www.ruby-forum.com/t/looking-for-an-appropiate-parser-generator/132048 "2008-03-17T06:36:08Z")

</div>

Hi, I’m new in this maillist so hello to all. I want to do a SIP protocol parser in Ruby (SIP protocol is very similar to HTTP) so I’m looking for the most appropiate parser in Ruby. Also, it’s the first time I try …

---

## [Hpricot search help](https://www.ruby-forum.com/t/hpricot-search-help/132085)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 2\
**Last updated:** [March 17, 2008, 4:40am UTC](https://www.ruby-forum.com/t/hpricot-search-help/132085 "2008-03-17T04:40:42Z")

</div>

hello I am trying to grab the table that has a html comment in it. for eg how can i do using search functionality in hpricot. appreciate any help

---

## [Returning text between two markers without markers included](https://www.ruby-forum.com/t/returning-text-between-two-markers-without-markers-included/132093)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 11\
**Last updated:** [March 17, 2008, 4:18am UTC](https://www.ruby-forum.com/t/returning-text-between-two-markers-without-markers-included/132093 "2008-03-17T04:18:21Z")

</div>

Hi if have str = “ruby is ((Great))” how do i use regex to find text between the start marker (( and end marker ))? Im new to regex but I tried this (((\[^((|^))\]\*))) but it includes the markers in the capture i.e. …

---

## [Re: SVN Revision 77 out](https://www.ruby-forum.com/t/re-svn-revision-77-out/132096)

<div class="topic-metadata">

**Author:** [@John\_LSSDLR](https://www.ruby-forum.com/u/John_LSSDLR)\
**Replies:** 3\
**Last updated:** [March 17, 2008, 2:53am UTC](https://www.ruby-forum.com/t/re-svn-revision-77-out/132096 "2008-03-17T02:53:15Z")

</div>

Msbuild doesn’t run on mono. John Sent from my phone

---

## [Re: SVN Revision 77 out](https://www.ruby-forum.com/t/re-svn-revision-77-out/132086)

<div class="topic-metadata">

**Author:** [@John\_LSSDLR](https://www.ruby-forum.com/u/John_LSSDLR)\
**Replies:** 4\
**Last updated:** [March 17, 2008, 1:06am UTC](https://www.ruby-forum.com/t/re-svn-revision-77-out/132086 "2008-03-17T01:06:00Z")

</div>

Can you send along a rake --trace repro? John Sent from my phone

---

## [A question about big projects and classes within classes](https://www.ruby-forum.com/t/a-question-about-big-projects-and-classes-within-classes/132100)

<div class="topic-metadata">

**Author:** [@August0866](https://www.ruby-forum.com/u/August0866)\
**Replies:** 1\
**Last updated:** [March 17, 2008, 1:03am UTC](https://www.ruby-forum.com/t/a-question-about-big-projects-and-classes-within-classes/132100 "2008-03-17T01:03:00Z")

</div>

I am trying to teach myself Ruby. So i have decided to make an RPG Sword and sorcery type. my question is can classes contain classes. for example Module World class Map class Make\_land def landmass # generate l…

---

## [Robert's Ruby Riddle: Methodical Digits](https://www.ruby-forum.com/t/roberts-ruby-riddle-methodical-digits/131943)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 9\
**Last updated:** [March 16, 2008, 10:49pm UTC](https://www.ruby-forum.com/t/roberts-ruby-riddle-methodical-digits/131943 "2008-03-16T22:49:37Z")

</div>

Hi list I was just bitten very recently by a subtlety of Ruby I had completely forgotten about. I thought it might be a challenge to use this subtlety in order to make the following test (the attached file contains t…

---

## [Script runs ok alone, broken pipe when piped to head?](https://www.ruby-forum.com/t/script-runs-ok-alone-broken-pipe-when-piped-to-head/131867)

<div class="topic-metadata">

**Author:** [@daz](https://www.ruby-forum.com/u/daz)\
**Replies:** 5\
**Last updated:** [March 16, 2008, 10:46pm UTC](https://www.ruby-forum.com/t/script-runs-ok-alone-broken-pipe-when-piped-to-head/131867 "2008-03-16T22:46:39Z")

</div>

Maybe I need to close the file or something? This invokation runs fine, but generates so much output: ruby -rubygems excelparse.rb stuff.xls so I piped it to head and it bombs: ruby -rubygems excelparse.rb stuff.xls|…

---

## [How can i execute a command from a ruby class file](https://www.ruby-forum.com/t/how-can-i-execute-a-command-from-a-ruby-class-file/132087)

<div class="topic-metadata">

**Author:** [@barakathullah](https://www.ruby-forum.com/u/barakathullah)\
**Replies:** 1\
**Last updated:** [March 16, 2008, 7:38pm UTC](https://www.ruby-forum.com/t/how-can-i-execute-a-command-from-a-ruby-class-file/132087 "2008-03-16T19:38:08Z")

</div>

Hi, I am using ffmpeg plugin to convert one mime type into another mime type. It works fine when i execute it directly in the command prompt by typing the command. But thats not my requirement. I want to run that com…

---

## [Generating core documentation](https://www.ruby-forum.com/t/generating-core-documentation/132088)

<div class="topic-metadata">

**Author:** [@crocco](https://www.ruby-forum.com/u/crocco)\
**Replies:** 0\
**Last updated:** [March 16, 2008, 7:38pm UTC](https://www.ruby-forum.com/t/generating-core-documentation/132088 "2008-03-16T19:38:08Z")

</div>

Following the discussion about the problems of the documentation for ruby core available on www.ruby-doc.org, I’ve tried to understand exactly which of the files in the ruby source distribution contain classes/method…

---

## [Sorting Excel table with OLE](https://www.ruby-forum.com/t/sorting-excel-table-with-ole/89844)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 4\
**Last updated:** [March 16, 2008, 7:16pm UTC](https://www.ruby-forum.com/t/sorting-excel-table-with-ole/89844 "2008-03-16T19:16:08Z")

</div>

Can anybody tell, how to sort Excel table with OLE automation? What I need is something like this: excel.Sort(‘On ColumnB’).Range(“a2:e5000”) Than you TheR

---

## [Cplus2Ruby - Gluing C++ and Ruby together in an OO manner](https://www.ruby-forum.com/t/cplus2ruby-gluing-c-and-ruby-together-in-an-oo-manner/132084)

<div class="topic-metadata">

**Author:** [@michaeln](https://www.ruby-forum.com/u/michaeln)\
**Replies:** 0\
**Last updated:** [March 16, 2008, 6:16pm UTC](https://www.ruby-forum.com/t/cplus2ruby-gluing-c-and-ruby-together-in-an-oo-manner/132084 "2008-03-16T18:16:02Z")

</div>

Hi, A major rewrite and lots of new features of Cplus2Ruby lead to a 1.0.0 release, actually the first release ever :slight\_smile: And yes, Cplus2Ruby is different from CplusRuby. Regards, Michael Cplus2Ruby - Glu…

---

## [Gem on macbook SLOW](https://www.ruby-forum.com/t/gem-on-macbook-slow/131861)

<div class="topic-metadata">

**Author:** [@ehuard](https://www.ruby-forum.com/u/ehuard)\
**Replies:** 5\
**Last updated:** [March 16, 2008, 5:41pm UTC](https://www.ruby-forum.com/t/gem-on-macbook-slow/131861 "2008-03-16T17:41:48Z")

</div>

Hello, i’ve got a brand new Macbook Pro. I’ve got ruby 1.8.6, as well as the usual gems. However, running gem install, or even rspec (which uses gem) takes a long time (2 minutes). I’ve tried debugging, and got as f…

---

## [Autoinstall gems](https://www.ruby-forum.com/t/autoinstall-gems/131791)

<div class="topic-metadata">

**Author:** [@S2S2S2](https://www.ruby-forum.com/u/S2S2S2)\
**Replies:** 7\
**Last updated:** [March 16, 2008, 5:27pm UTC](https://www.ruby-forum.com/t/autoinstall-gems/131791 "2008-03-16T17:27:36Z")

</div>

Is there a way to autoinstall a gem when it is “required” in an .rb file? say I have: #!/usr/bin/ruby require ‘rubygems’ require ‘HOTP’ puts HOTP.new.calculate\_hotp(‘12345’, 1, 6) Is there a way to make rubygems a…

---

## [Error using FasterCSV](https://www.ruby-forum.com/t/error-using-fastercsv/132018)

<div class="topic-metadata">

**Author:** [@glenn](https://www.ruby-forum.com/u/glenn)\
**Replies:** 4\
**Last updated:** [March 16, 2008, 4:51pm UTC](https://www.ruby-forum.com/t/error-using-fastercsv/132018 "2008-03-16T16:51:21Z")

</div>

Hi, I am trying to use FasterCSV and am getting an error. I installed the fastercsv gem and it appeared to install correctly. This is the error that I’m getting: …/fastercsv.rb:3: uninitialized constant FasterCSV (Na…

---

## [Newbie with Ruby and RoR](https://www.ruby-forum.com/t/newbie-with-ruby-and-ror/132026)

<div class="topic-metadata">

**Author:** [@Reynier\_Perez\_M](https://www.ruby-forum.com/u/Reynier_Perez_M)\
**Replies:** 2\
**Last updated:** [March 16, 2008, 12:31pm UTC](https://www.ruby-forum.com/t/newbie-with-ruby-and-ror/132026 "2008-03-16T12:31:07Z")

</div>

Hi every: As the title of the message said I’m newbie with Ruby and RoR. I passed the last 5 years of my life programming with PHP but now I want to learn Ruby. If any can help and say me if exists a Spanish Discussio…

---

## [SVN Revision 77 out](https://www.ruby-forum.com/t/svn-revision-77-out/131833)

<div class="topic-metadata">

**Author:** [@John\_LSSDLR](https://www.ruby-forum.com/u/John_LSSDLR)\
**Replies:** 12\
**Last updated:** [March 16, 2008, 12:22pm UTC](https://www.ruby-forum.com/t/svn-revision-77-out/131833 "2008-03-16T12:22:56Z")

</div>

There are a lot of new files in this change - mostly due to the beginnings of our work to get the latest Ruby specs working. So right now there are duplicate specs under tests. This will change in the future. Our wor…

---

## [REXML Formatter issue - does each Element need formatting?](https://www.ruby-forum.com/t/rexml-formatter-issue-does-each-element-need-formatting/131837)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 3\
**Last updated:** [March 16, 2008, 8:10am UTC](https://www.ruby-forum.com/t/rexml-formatter-issue-does-each-element-need-formatting/131837 "2008-03-16T08:10:42Z")

</div>

All, Recently upgraded to Ruby 1.8.6 and having some backwards-compatibility problems with REXML given it’s new formatting setup. Basically, I have a XML document with three elements underneath the root. After I com…

---

## [MacRuby 0.1](https://www.ruby-forum.com/t/macruby-0-1/131863)

<div class="topic-metadata">

**Author:** [@Laurent\_S](https://www.ruby-forum.com/u/Laurent_S)\
**Replies:** 1\
**Last updated:** [March 16, 2008, 7:30am UTC](https://www.ruby-forum.com/t/macruby-0-1/131863 "2008-03-16T07:30:52Z")

</div>

Hi, I am pleased to announce the first release of MacRuby, 0.1. MacRuby is a version of Ruby that runs on top of Objective-C. More precisely, MacRuby is currently a port of the Ruby 1.9 implementation for the Objecti…

---

## [Offering to work directly for the Ruby community!](https://www.ruby-forum.com/t/offering-to-work-directly-for-the-ruby-community/197058)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 20\
**Last updated:** [March 16, 2008, 6:34am UTC](https://www.ruby-forum.com/t/offering-to-work-directly-for-the-ruby-community/197058 "2008-03-16T06:34:04Z")

</div>

Hi folks, I’ve been prone to having crazy ideas before, but this one is my latest. After posting a long, whimsical post on the O’Reilly blog about this, my friends have persuaded me to try this for real. If you have…

---

## [Gem usage on Fedora](https://www.ruby-forum.com/t/gem-usage-on-fedora/131960)

<div class="topic-metadata">

**Author:** [@Nasir\_K](https://www.ruby-forum.com/u/Nasir_K)\
**Replies:** 2\
**Last updated:** [March 16, 2008, 3:45am UTC](https://www.ruby-forum.com/t/gem-usage-on-fedora/131960 "2008-03-16T03:45:56Z")

</div>

This may be s stupid mistake on my part, but I have spent a good hour on it. Just compiled ruby on Fedora 8, then installed rubygems and then installed a few gems - $ gem list \*\*\* LOCAL GEMS \*\*\* facets (1.8.54) f…

---

## [Time vs Datetime vs Date](https://www.ruby-forum.com/t/time-vs-datetime-vs-date/132035)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 3\
**Last updated:** [March 16, 2008, 2:46am UTC](https://www.ruby-forum.com/t/time-vs-datetime-vs-date/132035 "2008-03-16T02:46:29Z")

</div>

Hi all, why are there three different classes representing time? I think that is a really bad spot in the ruby library, because Time and DateTime seem to be incompatible to each other. For example in rails sql columns…

---

## [How to run ruby inside jedit](https://www.ruby-forum.com/t/how-to-run-ruby-inside-jedit/132049)

<div class="topic-metadata">

**Author:** [@joey\_eisma](https://www.ruby-forum.com/u/joey_eisma)\
**Replies:** 0\
**Last updated:** [March 16, 2008, 2:08am UTC](https://www.ruby-forum.com/t/how-to-run-ruby-inside-jedit/132049 "2008-03-16T02:08:37Z")

</div>

hi! im following this http://ruby-talk.markmail.org/message/pw5woijhd4lp3grd?q=jedit hoping to do the above mentioned task, however, i can’t still get a program to run. i get this cryptic beanshell error. i have the…

---

## [How to iterate through instance attribute names (attr\_accessor)](https://www.ruby-forum.com/t/how-to-iterate-through-instance-attribute-names-attr-accessor/132041)

<div class="topic-metadata">

**Author:** [@mememe](https://www.ruby-forum.com/u/mememe)\
**Replies:** 7\
**Last updated:** [March 16, 2008, 2:01am UTC](https://www.ruby-forum.com/t/how-to-iterate-through-instance-attribute-names-attr-accessor/132041 "2008-03-16T02:01:35Z")

</div>

Say, I have a class: class Event attr\_accessor :a, :b, :c, :d def initialize() end def validate # validate all attributes at once here end protected def validate\_a # a can be any number from 1-10 if b = ‘Y’…

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

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