# Ruby

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

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

---

## [How do two objects communicate?](https://www.ruby-forum.com/t/how-do-two-objects-communicate/48877)

<div class="topic-metadata">

**Author:** [@anne](https://www.ruby-forum.com/u/anne)\
**Replies:** 21\
**Last updated:** [November 28, 2005, 6:27pm UTC](https://www.ruby-forum.com/t/how-do-two-objects-communicate/48877 "2005-11-28T18:27:35Z")

</div>

I wrote a small program the procedural way, now I would like to write one the OOP way, but I am blocking on the matter of communication. One way to communicate is to have a class variable, ie a global to the class. S…

---

## [Re: How to read/write an int in binary form to a file?](https://www.ruby-forum.com/t/re-how-to-read-write-an-int-in-binary-form-to-a-file/48984)

<div class="topic-metadata">

**Author:** [@steve](https://www.ruby-forum.com/u/steve)\
**Replies:** 1\
**Last updated:** [November 28, 2005, 6:19pm UTC](https://www.ruby-forum.com/t/re-how-to-read-write-an-int-in-binary-form-to-a-file/48984 "2005-11-28T18:19:31Z")

</div>

Hello speechexpert, Your message entitled “How to read/write an int in binary form to a file?” was sent in reply to a message with a different subject. You probably intended to start a new thread; however, your maile…

---

## [Oops, my fault](https://www.ruby-forum.com/t/oops-my-fault/76660)

<div class="topic-metadata">

**Author:** [@rosco](https://www.ruby-forum.com/u/rosco)\
**Replies:** 0\
**Last updated:** [November 28, 2005, 6:19pm UTC](https://www.ruby-forum.com/t/oops-my-fault/76660 "2005-11-28T18:19:31Z")

</div>

Ahem, well, forget the third question. I’m blaming Eclipse’s CVS handling I thought the copy seemed a bit small. Hope I didn’t waste anyone’s time with that… What I came up with for this (a better example): def b…

---

## [Re: string range membership](https://www.ruby-forum.com/t/re-string-range-membership/76658)

<div class="topic-metadata">

**Author:** [@warrenbrown](https://www.ruby-forum.com/u/warrenbrown)\
**Replies:** 1\
**Last updated:** [November 28, 2005, 5:51pm UTC](https://www.ruby-forum.com/t/re-string-range-membership/76658 "2005-11-28T17:51:14Z")

</div>

Matz, Anyway, could Range#include? and Range#member? be changed back to a membership check and a new method be added to Range for interval coverage, or would that break too much backwards compatibility? Without an…

---

## [Frappr! map for ruby-lang](https://www.ruby-forum.com/t/frappr-map-for-ruby-lang/48911)

<div class="topic-metadata">

**Author:** [@daniel](https://www.ruby-forum.com/u/daniel)\
**Replies:** 8\
**Last updated:** [November 28, 2005, 5:51pm UTC](https://www.ruby-forum.com/t/frappr-map-for-ruby-lang/48911 "2005-11-28T17:51:13Z")

</div>

Hi, I created a ruby-lang frappr! map: Hopefully this can help with locating ruby neighbors as well as organizing groups/conferences/jobs. Contact me about any admin questions. Thanks, DCC

---

## [Re: Pack an arbitrary length string of bytes?](https://www.ruby-forum.com/t/re-pack-an-arbitrary-length-string-of-bytes/50662)

<div class="topic-metadata">

**Author:** [@steve](https://www.ruby-forum.com/u/steve)\
**Replies:** 0\
**Last updated:** [November 28, 2005, 5:38pm UTC](https://www.ruby-forum.com/t/re-pack-an-arbitrary-length-string-of-bytes/50662 "2005-11-28T17:38:46Z")

</div>

Hello speechexpert, Your message entitled “Pack an arbitrary length string of bytes?” was sent in reply to a message with a different subject. You probably intended to start a new thread; however, your mailer, like m…

---

## [Re: string range membership](https://www.ruby-forum.com/t/re-string-range-membership/100727)

<div class="topic-metadata">

**Author:** [@warrenbrown](https://www.ruby-forum.com/u/warrenbrown)\
**Replies:** 16\
**Last updated:** [November 28, 2005, 5:18pm UTC](https://www.ruby-forum.com/t/re-string-range-membership/100727 "2005-11-28T17:18:34Z")

</div>

Matz, For your information, member? used to iterate over ? items to check membership. But since confusion each. Any ideas? Ah, I see. So really, the root problem here is the assumption by Range that (value \< val…

---

## [Re: Fun with ranges!](https://www.ruby-forum.com/t/re-fun-with-ranges/49006)

<div class="topic-metadata">

**Author:** [@warrenbrown](https://www.ruby-forum.com/u/warrenbrown)\
**Replies:** 0\
**Last updated:** [November 28, 2005, 5:06pm UTC](https://www.ruby-forum.com/t/re-fun-with-ranges/49006 "2005-11-28T17:06:27Z")

</div>

Double-strange… I wonder if it’s a windows thing or a version thing (and if so why it only pops up somewhere between 1.8.0 and 1.8.3). Interesting – it seems to be a 1.8.2 thing. It's also an irb thing: ruby -v…

---

## [SOAP / EncodingStyle](https://www.ruby-forum.com/t/soap-encodingstyle/48826)

<div class="topic-metadata">

**Author:** [@fabienpenso](https://www.ruby-forum.com/u/fabienpenso)\
**Replies:** 2\
**Last updated:** [November 28, 2005, 3:45pm UTC](https://www.ruby-forum.com/t/soap-encodingstyle/48826 "2005-11-28T15:45:29Z")

</div>

Hi. I’ve been trying to do something with SOAP for hours with no luck. I need to get a request that looks like : \<?xml version="1.0" encoding="UTF-8"?\> \<SOAP-ENV:Envelope xmlns:SOAP-ENV=“http://schemas.xmlsoap.org/so…

---

## [Getting character(s) of a string at specified positions](https://www.ruby-forum.com/t/getting-character-s-of-a-string-at-specified-positions/48952)

<div class="topic-metadata">

**Author:** [@theguy0000](https://www.ruby-forum.com/u/theguy0000)\
**Replies:** 3\
**Last updated:** [November 28, 2005, 3:21pm UTC](https://www.ruby-forum.com/t/getting-character-s-of-a-string-at-specified-positions/48952 "2005-11-28T15:21:07Z")

</div>

Ok, so lets say I have this: myString = gets I wanted to find what character is at position 5. so if the use inputs “How much wood would a wood-chuck chuck if a wood-chuck could chuck wood” I would find that the ch…

---

## [Htmltokenizer bug?](https://www.ruby-forum.com/t/htmltokenizer-bug/48989)

<div class="topic-metadata">

**Author:** [@hsanson](https://www.ruby-forum.com/u/hsanson)\
**Replies:** 5\
**Last updated:** [November 28, 2005, 2:44pm UTC](https://www.ruby-forum.com/t/htmltokenizer-bug/48989 "2005-11-28T14:44:39Z")

</div>

I am using htmltokenizer to extract the links of some web pages, my script worked perfectly until I started to parse pages with “\<” and “\>” chars in the text. a html string like this this is a causes the htmlpa…

---

## [2dim array/matrix](https://www.ruby-forum.com/t/2dim-array-matrix/48995)

<div class="topic-metadata">

**Author:** [@wollez](https://www.ruby-forum.com/u/wollez)\
**Replies:** 7\
**Last updated:** [November 28, 2005, 2:44pm UTC](https://www.ruby-forum.com/t/2dim-array-matrix/48995 "2005-11-28T14:44:39Z")

</div>

hello, I’m quite new to programming as well to ruby. I want to store data in a 2 dimensional array. How can I do this? A more detailed describtion of what I want to do: I have data from a digital elevation model. Thi…

---

## [How to set up the RI view for RDoc in Ruby RDT for Eclipse?](https://www.ruby-forum.com/t/how-to-set-up-the-ri-view-for-rdoc-in-ruby-rdt-for-eclipse/48049)

<div class="topic-metadata">

**Author:** [@nmanole](https://www.ruby-forum.com/u/nmanole)\
**Replies:** 4\
**Last updated:** [November 28, 2005, 2:36pm UTC](https://www.ruby-forum.com/t/how-to-set-up-the-ri-view-for-rdoc-in-ruby-rdt-for-eclipse/48049 "2005-11-28T14:36:32Z")

</div>

Could someone tell me how to make the RI view in the Eclipse Ruby RDT show RDocs? I installed the Ruby-mswin32 Windows binaries and changed the RDT prefs to point to the ri.bat and rdoc.bat files in the bin directory.…

---

## [From a file to an array of words](https://www.ruby-forum.com/t/from-a-file-to-an-array-of-words/48994)

<div class="topic-metadata">

**Author:** [@ngoc](https://www.ruby-forum.com/u/ngoc)\
**Replies:** 2\
**Last updated:** [November 28, 2005, 1:51pm UTC](https://www.ruby-forum.com/t/from-a-file-to-an-array-of-words/48994 "2005-11-28T13:51:56Z")

</div>

I want to compare two text(html) files. “diff” command in Linux compares only by line. In Ruby, I can use “File.readlines” and “split” later. Is there a single function(method) to go from a file to an array of words. …

---

## [ANN: Dao Language v.0.9.6-beta is release!](https://www.ruby-forum.com/t/ann-dao-language-v-0-9-6-beta-is-release/48990)

<div class="topic-metadata">

**Author:** [@phoolimin](https://www.ruby-forum.com/u/phoolimin)\
**Replies:** 0\
**Last updated:** [November 28, 2005, 12:10pm UTC](https://www.ruby-forum.com/t/ann-dao-language-v-0-9-6-beta-is-release/48990 "2005-11-28T12:10:32Z")

</div>

Dear all, This is just to let you know that the lastest version Dao language is released. This Dao was previously called Tao, and now is changed to Dao to avoid confusion with another Tao langauge. There are a numbe…

---

## [Supporting/emulating updatable views in a ruby orm](https://www.ruby-forum.com/t/supporting-emulating-updatable-views-in-a-ruby-orm/48918)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 1\
**Last updated:** [November 28, 2005, 9:52am UTC](https://www.ruby-forum.com/t/supporting-emulating-updatable-views-in-a-ruby-orm/48918 "2005-11-28T09:52:58Z")

</div>

i’ve got a method to emulate updateable views in postgresql which is rather simple. however, i’m wondering if any of the ruby orms out there would support such a beast. for example, given: create table foo( foo…

---

## [Ruport 0.2.5: Enumerable DataSets, and things that go bump i](https://www.ruby-forum.com/t/ruport-0-2-5-enumerable-datasets-and-things-that-go-bump-i/48381)

<div class="topic-metadata">

**Author:** [@gregory.t.brown](https://www.ruby-forum.com/u/gregory.t.brown)\
**Replies:** 4\
**Last updated:** [November 28, 2005, 5:18am UTC](https://www.ruby-forum.com/t/ruport-0-2-5-enumerable-datasets-and-things-that-go-bump-i/48381 "2005-11-28T05:18:44Z")

</div>

Welcome to the release of Ruport 0.2.5: The “I’m releasing too often” edition. What is Ruport? Right now, Ruport is alpha software, but it is already useful. It is both a report generation and formatting framework A…

---

## [Ron Jeffries implementing Extended Sets](https://www.ruby-forum.com/t/ron-jeffries-implementing-extended-sets/48574)

<div class="topic-metadata">

**Author:** [@pit](https://www.ruby-forum.com/u/pit)\
**Replies:** 4\
**Last updated:** [November 28, 2005, 3:46am UTC](https://www.ruby-forum.com/t/ron-jeffries-implementing-extended-sets/48574 "2005-11-28T03:46:12Z")

</div>

For those of you not reading the Extreme Programming mailing list, Ron Jeffries is currently blogging about Extended Set Theory and a more or less test driven implementation in Ruby. You can find the articles here: ht…

---

## [Ruby language dictionary entry](https://www.ruby-forum.com/t/ruby-language-dictionary-entry/48979)

<div class="topic-metadata">

**Author:** [@cfrayda](https://www.ruby-forum.com/u/cfrayda)\
**Replies:** 0\
**Last updated:** [November 28, 2005, 3:05am UTC](https://www.ruby-forum.com/t/ruby-language-dictionary-entry/48979 "2005-11-28T03:05:55Z")

</div>

Hello all, I am hoping you would help with a Ruby Language Dictionary (cheat-sheet) page in the Software Engineers’ Handbook Wikibook. I’m looking for a quick overview of general program structure with pointers to m…

---

## [Floating point subtraction question](https://www.ruby-forum.com/t/floating-point-subtraction-question/48969)

<div class="topic-metadata">

**Author:** [@nick](https://www.ruby-forum.com/u/nick)\
**Replies:** 4\
**Last updated:** [November 28, 2005, 12:20am UTC](https://www.ruby-forum.com/t/floating-point-subtraction-question/48969 "2005-11-28T00:20:47Z")

</div>

Hi, I’m a bit confused with some simple floating point arithmetic: % ruby -e ‘puts “#{(1.2 - 1.0) == 0.2}”’ false % ruby -e ‘puts “#{(1.5 - 1.0) == 0.5}”’ true I’m sure there’s a perfectly logical reason for this, …

---

## [RRobots - ducks, armed and dangerous](https://www.ruby-forum.com/t/rrobots-ducks-armed-and-dangerous/48773)

<div class="topic-metadata">

**Author:** [@SimonKroeger](https://www.ruby-forum.com/u/SimonKroeger)\
**Replies:** 36\
**Last updated:** [November 27, 2005, 11:08pm UTC](https://www.ruby-forum.com/t/rrobots-ducks-armed-and-dangerous/48773 "2005-11-27T23:08:16Z")

</div>

RRobots v0.1 First there was CRobots, followed by PRobots and many others, recently (well also years ago) Robocode emerged and finally this is RRobots bringing all the fun to the ruby community. What is he talking ab…

---

## [Recursion](https://www.ruby-forum.com/t/recursion/68658)

<div class="topic-metadata">

**Author:** [@cyberco](https://www.ruby-forum.com/u/cyberco)\
**Replies:** 9\
**Last updated:** [November 27, 2005, 9:22pm UTC](https://www.ruby-forum.com/t/recursion/68658 "2005-11-27T21:22:55Z")

</div>

I’m trying to print every combination of three characters from the range (a…z). I thought recursion would be the most elegant solution, but that got me quite confused :slight\_smile: Any suggestions? Here’s my (errono…

---

## [Nubish 2 - Of require and Ruby CVS](https://www.ruby-forum.com/t/nubish-2-of-require-and-ruby-cvs/48959)

<div class="topic-metadata">

**Author:** [@rosco](https://www.ruby-forum.com/u/rosco)\
**Replies:** 0\
**Last updated:** [November 27, 2005, 8:58pm UTC](https://www.ruby-forum.com/t/nubish-2-of-require-and-ruby-cvs/48959 "2005-11-27T20:58:39Z")

</div>

Hi again folks, Thanks for the excellent answers yesterday :slight\_smile: I’ve been busy again today, and now of course I have some more questions. Only a couple, so here goes: I wanted to use Rake’s file commands…

---

## [Backtick with variables?](https://www.ruby-forum.com/t/backtick-with-variables/48954)

<div class="topic-metadata">

**Author:** [@Sardaukary](https://www.ruby-forum.com/u/Sardaukary)\
**Replies:** 1\
**Last updated:** [November 27, 2005, 8:10pm UTC](https://www.ruby-forum.com/t/backtick-with-variables/48954 "2005-11-27T20:10:08Z")

</div>

I want to run an external command and capture the output. hosts =net view will store the results from running net view (XP command to list machines on network) in a string called hosts. How do I execute a command sto…

---

## [RailsConf 2006, June 22-25, Chicago IL](https://www.ruby-forum.com/t/railsconf-2006-june-22-25-chicago-il/48955)

<div class="topic-metadata">

**Author:** [@chadfowler](https://www.ruby-forum.com/u/chadfowler)\
**Replies:** 0\
**Last updated:** [November 27, 2005, 8:02pm UTC](https://www.ruby-forum.com/t/railsconf-2006-june-22-25-chicago-il/48955 "2005-11-27T20:02:05Z")

</div>

Ruby Central, Inc. is pleased to announce the First International Rails Conference (http://railsconf.org). The conference will be held in Chicago, IL, USA from June 22-25, 2006. Brought to you by the same organization…

---

## [Newbie scope issue](https://www.ruby-forum.com/t/newbie-scope-issue/48774)

<div class="topic-metadata">

**Author:** [@jemptymethod](https://www.ruby-forum.com/u/jemptymethod)\
**Replies:** 12\
**Last updated:** [November 27, 2005, 7:13pm UTC](https://www.ruby-forum.com/t/newbie-scope-issue/48774 "2005-11-27T19:13:39Z")

</div>

I’m brand new to ruby, as in, one hour! So along with perhaps answering my very basic question, please feel free to point me to other resources on the web How do I fix the following so that entering ‘q’ indeed breaks…

---

## [Question about SOAP and basic auth](https://www.ruby-forum.com/t/question-about-soap-and-basic-auth/48951)

<div class="topic-metadata">

**Author:** [@oliver.andrich](https://www.ruby-forum.com/u/oliver.andrich)\
**Replies:** 1\
**Last updated:** [November 27, 2005, 6:41pm UTC](https://www.ruby-forum.com/t/question-about-soap-and-basic-auth/48951 "2005-11-27T18:41:05Z")

</div>

Hi, I am just starting to learn ruby and want to use it to automate some tasks in our project. I am using ruby on windows (the one-click installer) at the moment. I have written a small testscript which looks like th…

---

## [Warning: default \`to\_a' will be obsolete](https://www.ruby-forum.com/t/warning-default-to-a-will-be-obsolete/48908)

<div class="topic-metadata">

**Author:** [@dcorbin](https://www.ruby-forum.com/u/dcorbin)\
**Replies:** 8\
**Last updated:** [November 27, 2005, 1:41pm UTC](https://www.ruby-forum.com/t/warning-default-to-a-will-be-obsolete/48908 "2005-11-27T13:41:20Z")

</div>

I’m getting this warning, which I think is new in 1.8.3. warning: default \`to\_a’ will be obsolete However, I can’t find what the expected alternative is. Any pointers? David

---

## [GEM Question On Error Messages](https://www.ruby-forum.com/t/gem-question-on-error-messages/48903)

<div class="topic-metadata">

**Author:** [@rblove](https://www.ruby-forum.com/u/rblove)\
**Replies:** 1\
**Last updated:** [November 27, 2005, 8:05am UTC](https://www.ruby-forum.com/t/gem-question-on-error-messages/48903 "2005-11-27T08:05:48Z")

</div>

Am brand new to Ruby. I use Log4Perl in my perl work and wanted a similar capability. I found log4r and some means of packaging callled “gem”. When I run the gem installer I get Installing RDoc documentation for log…

---

## [Rake + gems + rdoc - broken?](https://www.ruby-forum.com/t/rake-gems-rdoc-broken/48904)

<div class="topic-metadata">

**Author:** [@itsme213](https://www.ruby-forum.com/u/itsme213)\
**Replies:** 3\
**Last updated:** [November 27, 2005, 7:49am UTC](https://www.ruby-forum.com/t/rake-gems-rdoc-broken/48904 "2005-11-27T07:49:43Z")

</div>

Gems which previously used to install with rdocs (available via the gems rdoc server) don’t seem to do so any more. And “rake rdoc” dies. Anyone else having similar behaviors? Thanks. C:\\ruby\\lib\\ruby\\gems\\1.8\\gems…

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

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