# Ruby

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

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

---

## [Re: Object browser, Smalltalk like Ruby environment](https://www.ruby-forum.com/t/re-object-browser-smalltalk-like-ruby-environment/59069)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 0\
**Last updated:** [April 28, 2006, 11:52am UTC](https://www.ruby-forum.com/t/re-object-browser-smalltalk-like-ruby-environment/59069 "2006-04-28T11:52:09Z")

</div>

Jeff R. \[mailto:removed\_email\_address@domain.invalid\] : Mike A. has built a nice prototype environment, using ruby and SDL/OpenGL, that people have started to look at. You can check out Inertia on his website: Iner…

---

## [Object browser, Smalltalk like Ruby environment](https://www.ruby-forum.com/t/object-browser-smalltalk-like-ruby-environment/59062)

<div class="topic-metadata">

**Author:** [@Wang\_Austin-W22255](https://www.ruby-forum.com/u/Wang_Austin-W22255)\
**Replies:** 1\
**Last updated:** [April 28, 2006, 11:21am UTC](https://www.ruby-forum.com/t/object-browser-smalltalk-like-ruby-environment/59062 "2006-04-28T11:21:40Z")

</div>

Hello, Does anybody know is there a Smalltalk like Ruby environment, providing the functionalities: Browse the objects inside the system Add object/classes to the system Send a message to an existing object … BR, …

---

## [Nil? takes much time](https://www.ruby-forum.com/t/nil-takes-much-time/59031)

<div class="topic-metadata">

**Author:** [@victor123789](https://www.ruby-forum.com/u/victor123789)\
**Replies:** 3\
**Last updated:** [April 28, 2006, 10:15am UTC](https://www.ruby-forum.com/t/nil-takes-much-time/59031 "2006-04-28T10:15:11Z")

</div>

Hello all. In one my class I’ve had very simple method: … def stored? !@db.nil? end … And I’ve suddenly noticed (due to profile) that nil? Takes a significant amount of time here. Redefining the above method lik…

---

## [Re: getting the next line with the iterator](https://www.ruby-forum.com/t/re-getting-the-next-line-with-the-iterator/94304)

<div class="topic-metadata">

**Author:** [@KroegerS\_Simon\_Sext](https://www.ruby-forum.com/u/KroegerS_Simon_Sext)\
**Replies:** 0\
**Last updated:** [April 28, 2006, 9:48am UTC](https://www.ruby-forum.com/t/re-getting-the-next-line-with-the-iterator/94304 "2006-04-28T09:48:05Z")

</div>

while g.next? if g.next =~ /regExp/ 3.times { list \<\< g.next } end end end puts list Well, yes. In the general case I would agree. In this case I think list = \[\] File.open(‘toto.txt’, ‘rb’) do |myFile| while…

---

## [Implementing publish subscribe in ruby](https://www.ruby-forum.com/t/implementing-publish-subscribe-in-ruby/59052)

<div class="topic-metadata">

**Author:** [@bujji\_choudhary](https://www.ruby-forum.com/u/bujji_choudhary)\
**Replies:** 1\
**Last updated:** [April 28, 2006, 8:56am UTC](https://www.ruby-forum.com/t/implementing-publish-subscribe-in-ruby/59052 "2006-04-28T08:56:19Z")

</div>

Hi all… I want to implement publish subscribe pattern for small application like “stock market” or " reservation of trains". Can any body tell me where to start. I am new to ruby. If anybody is having any code for th…

---

## [Re: Q about the FasterCSV](https://www.ruby-forum.com/t/re-q-about-the-fastercsv/94302)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 1\
**Last updated:** [April 28, 2006, 7:25am UTC](https://www.ruby-forum.com/t/re-q-about-the-fastercsv/94302 "2006-04-28T07:25:14Z")

</div>

James Edward G. II \[mailto:removed\_email\_address@domain.invalid\] : What’s the correct way to handle: one, “two” ? Is the second field two or “two” or “two”. I have no imho, the latter. computer just reads what is…

---

## [Re: Q about the FasterCSV](https://www.ruby-forum.com/t/re-q-about-the-fastercsv/94299)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 1\
**Last updated:** [April 28, 2006, 6:06am UTC](https://www.ruby-forum.com/t/re-q-about-the-fastercsv/94299 "2006-04-28T06:06:49Z")

</div>

Dave B. \[mailto:removed\_email\_address@domain.invalid\] : James Edward G. II wrote: \> Good points all around. Dave knows this code better than I do, \> clearly. :wink: Thanks, but credit to you – IIRC part of your …

---

## [Re: Q about the FasterCSV](https://www.ruby-forum.com/t/re-q-about-the-fastercsv/94298)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 1\
**Last updated:** [April 28, 2006, 6:03am UTC](https://www.ruby-forum.com/t/re-q-about-the-fastercsv/94298 "2006-04-28T06:03:48Z")

</div>

Dave B. \[mailto:removed\_email\_address@domain.invalid\] : Oh, I don’t want the patch. It’s a terrible idea! “foo, bar, ‘baz’” aren’t CSV, they’re CASWSSV (comma and some white-space separated values). That’s got to be …

---

## [Difference between :: and . in calling methods](https://www.ruby-forum.com/t/difference-between-and-in-calling-methods/58755)

<div class="topic-metadata">

**Author:** [@mutejute](https://www.ruby-forum.com/u/mutejute)\
**Replies:** 4\
**Last updated:** [April 28, 2006, 5:03am UTC](https://www.ruby-forum.com/t/difference-between-and-in-calling-methods/58755 "2006-04-28T05:03:31Z")

</div>

newb here. whats the difference between :: and . in calling methods? like for example: File::open and File.open As I understand, you use :: in invoking the constant of a class like Math::PI . Another thing is if i …

---

## [Gateway and the new ruby-talk-google archive](https://www.ruby-forum.com/t/gateway-and-the-new-ruby-talk-google-archive/94280)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [April 28, 2006, 3:52am UTC](https://www.ruby-forum.com/t/gateway-and-the-new-ruby-talk-google-archive/94280 "2006-04-28T03:52:01Z")

</div>

Hi All, Though everyone should know about the status of the news\<-\>mail gateway. I’ve talked to various persons involved and it appears it will not be coming back. That means the newgroup (comp.lang.ruby) is now on i…

---

## [Re: getting the next line with the iterator](https://www.ruby-forum.com/t/re-getting-the-next-line-with-the-iterator/59043)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 0\
**Last updated:** [April 28, 2006, 3:51am UTC](https://www.ruby-forum.com/t/re-getting-the-next-line-with-the-iterator/59043 "2006-04-28T03:51:07Z")

</div>

do. I want to be able to access the next iterator while reading a file. Basically, I want to be able to collect the next 3 lines when I encounter a certain line: I find this the most readable way to do it, though u…

---

## [Getting the next line with the iterator](https://www.ruby-forum.com/t/getting-the-next-line-with-the-iterator/59027)

<div class="topic-metadata">

**Author:** [@blair](https://www.ruby-forum.com/u/blair)\
**Replies:** 7\
**Last updated:** [April 28, 2006, 3:45am UTC](https://www.ruby-forum.com/t/getting-the-next-line-with-the-iterator/59027 "2006-04-28T03:45:06Z")

</div>

Hi, I would like to know if there is a ruby way to achieve what I want to do. I want to be able to access the next iterator while reading a file. Basically, I want to be able to collect the next 3 lines when I encoun…

---

## [RMagick, win32, installs but won't load](https://www.ruby-forum.com/t/rmagick-win32-installs-but-wont-load/59037)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 28, 2006, 2:25am UTC](https://www.ruby-forum.com/t/rmagick-win32-installs-but-wont-load/59037 "2006-04-28T02:25:10Z")

</div>

I tried installing RMagick-1.9.1-IM-6.2.3-win32 gem on WinXp, running Ruby 1.8.2, build 15 (12-25-2005). I downloaded and installed the Win32 build of Rmagic as per the instructions: Unpack the zip gem install RMag…

---

## [Fishing in Ruby](https://www.ruby-forum.com/t/fishing-in-ruby/59008)

<div class="topic-metadata">

**Author:** [@A\_Fisherman](https://www.ruby-forum.com/u/A_Fisherman)\
**Replies:** 9\
**Last updated:** [April 28, 2006, 2:24am UTC](https://www.ruby-forum.com/t/fishing-in-ruby/59008 "2006-04-28T02:24:18Z")

</div>

sea =\<\<END\_OF\_SEA \<}}}}\> \>\<}}}}\> \>\<}}}}\> \<}}}}\> \<}}}}\> \>\<}}}}\> \<}}}}\*\> END\_OF\_SEA fish\_caught = sea.scan(%\>\<}}}}\*\>) “I got #{fish\_caught.size} fish!” # =\> “I got 7 fish!” Please don’t overfi…

---

## [Re: Integration/Antidifferentiation Program](https://www.ruby-forum.com/t/re-integration-antidifferentiation-program/94297)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 28, 2006, 2:14am UTC](https://www.ruby-forum.com/t/re-integration-antidifferentiation-program/94297 "2006-04-28T02:14:11Z")

</div>

Come on, Google is your friend. I searched for “symbolic differentiation” & found several hits to projects & code libraries which do exactly what you are wanting to do. Granted, a number of these are written in lang…

---

## [Re: Trying to stir conversation in the rrobots community](https://www.ruby-forum.com/t/re-trying-to-stir-conversation-in-the-rrobots-community/58950)

<div class="topic-metadata">

**Author:** [@KroegerS\_Simon\_Sext](https://www.ruby-forum.com/u/KroegerS_Simon_Sext)\
**Replies:** 4\
**Last updated:** [April 28, 2006, 1:22am UTC](https://www.ruby-forum.com/t/re-trying-to-stir-conversation-in-the-rrobots-community/58950 "2006-04-28T01:22:42Z")

</div>

Hi Greg, well there was some talk about new feature in february but all in all you are right. This might be my fault, (at least part of) I was planing tournaments on a regular basis but was distracted by several - pe…

---

## [ANN: Matchable 0.2](https://www.ruby-forum.com/t/ann-matchable-0-2/59035)

<div class="topic-metadata">

**Author:** [@mfaine](https://www.ruby-forum.com/u/mfaine)\
**Replies:** 0\
**Last updated:** [April 28, 2006, 1:07am UTC](https://www.ruby-forum.com/t/ann-matchable-0-2/59035 "2006-04-28T01:07:40Z")

</div>

http://matchable.rubyforge.org/ The Matchable mixin borrows ideas from ML http://www.smlnj.org/sml97.html(and probably other functional languages). The syntax currently supported looks like this: class Bar include …

---

## [Is\_number function?](https://www.ruby-forum.com/t/is-number-function/59025)

<div class="topic-metadata">

**Author:** [@sporkyy](https://www.ruby-forum.com/u/sporkyy)\
**Replies:** 5\
**Last updated:** [April 28, 2006, 12:55am UTC](https://www.ruby-forum.com/t/is-number-function/59025 "2006-04-28T00:55:52Z")

</div>

Is there a function in core ruby to determin if a variable is a number or not? something like @XX.is\_numeric? or is\_number(@XX)

---

## [Nil? takes much time](https://www.ruby-forum.com/t/nil-takes-much-time/94295)

<div class="topic-metadata">

**Author:** [@victor123789](https://www.ruby-forum.com/u/victor123789)\
**Replies:** 0\
**Last updated:** [April 28, 2006, 12:52am UTC](https://www.ruby-forum.com/t/nil-takes-much-time/94295 "2006-04-28T00:52:24Z")

</div>

Hello all. In one my class I’ve had very simple method: … def stored? !@db.nil? end … And I’ve suddenly noticed (due to profile) that nil? Takes a significant amount of time here. Redefining the above method lik…

---

## [Google SOC Suggestion](https://www.ruby-forum.com/t/google-soc-suggestion/59014)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 7\
**Last updated:** [April 27, 2006, 11:05pm UTC](https://www.ruby-forum.com/t/google-soc-suggestion/59014 "2006-04-27T23:05:32Z")

</div>

A bug tracking mechanism that sucks significantly less than FogBugs! Why can no one get this right? It’s not rocket science. James Edward G. II

---

## [Google Summer of Code Suggestion](https://www.ruby-forum.com/t/google-summer-of-code-suggestion/59018)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 0\
**Last updated:** [April 27, 2006, 10:34pm UTC](https://www.ruby-forum.com/t/google-summer-of-code-suggestion/59018 "2006-04-27T22:34:17Z")

</div>

Not sure if we are still looking for SoC suggesitons but here goes… I’d like to see development built around deploying Rails on IIS. Porting Capistrano to deploy to Windows, putting a point-and-click UI on top of cap…

---

## [Re: Q about the FasterCSV](https://www.ruby-forum.com/t/re-q-about-the-fastercsv/94265)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 9\
**Last updated:** [April 27, 2006, 8:46pm UTC](https://www.ruby-forum.com/t/re-q-about-the-fastercsv/94265 "2006-04-27T20:46:28Z")

</div>

Dave B. \[mailto:removed\_email\_address@domain.invalid\] : No, it’s not a bug. CSV is a simple delimited format. It’s delimited by a comma character, not a comma then some arbitrary whitespace. That’s how Microsoft’s E…

---

## [Where are the Test::Unit meta tests?](https://www.ruby-forum.com/t/where-are-the-test-unit-meta-tests/58970)

<div class="topic-metadata">

**Author:** [@thiagoalessio](https://www.ruby-forum.com/u/thiagoalessio)\
**Replies:** 2\
**Last updated:** [April 27, 2006, 8:01pm UTC](https://www.ruby-forum.com/t/where-are-the-test-unit-meta-tests/58970 "2006-04-27T20:01:19Z")

</div>

I suppose Test::Unit has tests for testing itself, but I can’t find the source code for them. The docs at ruby-doc.org can show the source code, but only for the production code. I wasn’t able to find a home page for …

---

## [Rake default == -T](https://www.ruby-forum.com/t/rake-default-t/94270)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [April 27, 2006, 6:16pm UTC](https://www.ruby-forum.com/t/rake-default-t/94270 "2006-04-27T18:16:49Z")

</div>

Hi, Is it possible to make the default task the same as using the -T option? I.e. I want to type: % rake And see all the tasks. T.

---

## ["Unrequire" a file?](https://www.ruby-forum.com/t/unrequire-a-file/58968)

<div class="topic-metadata">

**Author:** [@tuka](https://www.ruby-forum.com/u/tuka)\
**Replies:** 3\
**Last updated:** [April 27, 2006, 6:15pm UTC](https://www.ruby-forum.com/t/unrequire-a-file/58968 "2006-04-27T18:15:26Z")

</div>

Hi, after making changes to a particular file, I would either like to overwrite the already included one or ‘unrequire’ the existing one. Is this possible ? My tests below indicate it is not… TIA, Tuka C:\\Ruby\\hot…

---

## [Re: Pickaxe 1 & 2 - Worth the upgrade?](https://www.ruby-forum.com/t/re-pickaxe-1-2-worth-the-upgrade/94271)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 1\
**Last updated:** [April 27, 2006, 5:58pm UTC](https://www.ruby-forum.com/t/re-pickaxe-1-2-worth-the-upgrade/94271 "2006-04-27T17:58:24Z")

</div>

Doug B. \[mailto:removed\_email\_address@domain.invalid\] : I was just wondering if it would be worth me buying the second edition of Pickaxe? imho, yes #Is there really much difference between it and the first edition? …

---

## [Re: Trouble migrating formula from JavaScript to Ruby](https://www.ruby-forum.com/t/re-trouble-migrating-formula-from-javascript-to-ruby/94269)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 2\
**Last updated:** [April 27, 2006, 5:35pm UTC](https://www.ruby-forum.com/t/re-trouble-migrating-formula-from-javascript-to-ruby/94269 "2006-04-27T17:35:21Z")

</div>

Ingo W.: //JavaScript: dlng = p2\_lng - p1\_lng dlat = p2\_lat - p1\_lat a = (sin(dlat/2))^2 + cos(p1\_lat) \* cos(p2\_lat) \* (sin(dlon/2))^2 c = 2 \* atan2( sqrt(a), sqrt(1-a) ) distance = R \* c (where R is the radius of the E…

---

## [Last (more or less) call for Google Summer of Code mentors!](https://www.ruby-forum.com/t/last-more-or-less-call-for-google-summer-of-code-mentors/58989)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [April 27, 2006, 5:18pm UTC](https://www.ruby-forum.com/t/last-more-or-less-call-for-google-summer-of-code-mentors/58989 "2006-04-27T17:18:15Z")

</div>

Hi – As you know, Ruby Central is participating this year as a Google Summer of Code mentoring organization. We’ve already got a number of mentors signed up, and are looking forward to getting student applications. …

---

## [Text Munger (#76)](https://www.ruby-forum.com/t/text-munger-76/94274)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 7\
**Last updated:** [April 27, 2006, 4:43pm UTC](https://www.ruby-forum.com/t/text-munger-76/94274 "2006-04-27T16:43:00Z")

</div>

Obviously, this is not an overly difficult problem. Here’s a small, but pretty easy to follow solution by Gordon T.: class String def munge split(/\\b/).munge\_each.join end end class Array def munge\_each…

---

## [Day number delta](https://www.ruby-forum.com/t/day-number-delta/58967)

<div class="topic-metadata">

**Author:** [@Lindsay\_B](https://www.ruby-forum.com/u/Lindsay_B)\
**Replies:** 3\
**Last updated:** [April 27, 2006, 3:31pm UTC](https://www.ruby-forum.com/t/day-number-delta/58967 "2006-04-27T15:31:16Z")

</div>

How can I calculate the number of days between two Date objects?. This is easy enough with Time objects using the epoch seconds method tv\_sec. Is there something similar for Dates? thanks Lindsay

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

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