# Ruby

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

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

---

## [Rant 0.5.6](https://www.ruby-forum.com/t/rant-0-5-6/95289)

<div class="topic-metadata">

**Author:** [@stefanl38](https://www.ruby-forum.com/u/stefanl38)\
**Replies:** 0\
**Last updated:** [May 26, 2006, 7:40pm UTC](https://www.ruby-forum.com/t/rant-0-5-6/95289 "2006-05-26T19:40:10Z")

</div>

Rant is a flexible build tool written in pure Ruby. == What’s new in this release? This is mainly a bugfix release. Package::Zip, Package::Tgz: Fix bug where a file that starts with the package name wouldn’t be inc…

---

## [Re: Ruby Client to Microsoft .Net Webservice](https://www.ruby-forum.com/t/re-ruby-client-to-microsoft-net-webservice/61738)

<div class="topic-metadata">

**Author:** [@Alan\_Ark](https://www.ruby-forum.com/u/Alan_Ark)\
**Replies:** 0\
**Last updated:** [May 26, 2006, 7:24pm UTC](https://www.ruby-forum.com/t/re-ruby-client-to-microsoft-net-webservice/61738 "2006-05-26T19:24:51Z")

</div>

I’d also set driver.generate\_explicit\_type = false before the WS call. I remember doing that, but I forget the actual reason why.

---

## [Extra CR chars inserted into a downloaded file](https://www.ruby-forum.com/t/extra-cr-chars-inserted-into-a-downloaded-file/61721)

<div class="topic-metadata">

**Author:** [@Nate\_Morse](https://www.ruby-forum.com/u/Nate_Morse)\
**Replies:** 4\
**Last updated:** [May 26, 2006, 7:02pm UTC](https://www.ruby-forum.com/t/extra-cr-chars-inserted-into-a-downloaded-file/61721 "2006-05-26T19:02:31Z")

</div>

Hello all, Could anyone help shed light on some pesky (extra) Carrige Rreturns '\\r’s I’m in a windows environment, and I’m seeing extra chars in a download vs. direct file access. normally I would not care but later…

---

## [Questionable behavior](https://www.ruby-forum.com/t/questionable-behavior/95285)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [May 26, 2006, 6:59pm UTC](https://www.ruby-forum.com/t/questionable-behavior/95285 "2006-05-26T18:59:24Z")

</div>

I’m getting some very strange behavior from a conditional statement – I can;t imagine how it is happeneing and I wondering if I stumbled upon some sort of bug in Ruby. Although I have no idea how it could even occuer,…

---

## [Input before Output in Eclipse](https://www.ruby-forum.com/t/input-before-output-in-eclipse/61729)

<div class="topic-metadata">

**Author:** [@yoche2001](https://www.ruby-forum.com/u/yoche2001)\
**Replies:** 5\
**Last updated:** [May 26, 2006, 5:53pm UTC](https://www.ruby-forum.com/t/input-before-output-in-eclipse/61729 "2006-05-26T17:53:03Z")

</div>

Hi Rubyfolks, I’ve just started to learn ruby, using Eclipse and RDT as IDE (on Mac). One of my first program was the following (don’t laugh!): print "Whats your name? " name = gets print "Your name is: "+name Not …

---

## [Re: Input before Output in Eclipse](https://www.ruby-forum.com/t/re-input-before-output-in-eclipse/61732)

<div class="topic-metadata">

**Author:** [@stuart\_holden](https://www.ruby-forum.com/u/stuart_holden)\
**Replies:** 0\
**Last updated:** [May 26, 2006, 5:52pm UTC](https://www.ruby-forum.com/t/re-input-before-output-in-eclipse/61732 "2006-05-26T17:52:56Z")

</div>

Does adding the following to the start of your script help? $stdout.sync=true $stderr.sync=true Regards, Stu

---

## [Musical Instruments and Programming Languages (was RE: ANN:](https://www.ruby-forum.com/t/musical-instruments-and-programming-languages-was-re-ann/61667)

<div class="topic-metadata">

**Author:** [@DEBAUNS\_STEVE\_SAG-C](https://www.ruby-forum.com/u/DEBAUNS_STEVE_SAG-C)\
**Replies:** 9\
**Last updated:** [May 26, 2006, 5:11pm UTC](https://www.ruby-forum.com/t/musical-instruments-and-programming-languages-was-re-ann/61667 "2006-05-26T17:11:57Z")

</div>

Eh, looking at it from the other direction… On a piano, you might be able to use more fingers, but you are limited to which sounds you can produce because each key is tuned to a specific note. In thinking with fretl…

---

## [For those who have not seen the news-group](https://www.ruby-forum.com/t/for-those-who-have-not-seen-the-news-group/61674)

<div class="topic-metadata">

**Author:** [@agorilla](https://www.ruby-forum.com/u/agorilla)\
**Replies:** 2\
**Last updated:** [May 26, 2006, 5:02pm UTC](https://www.ruby-forum.com/t/for-those-who-have-not-seen-the-news-group/61674 "2006-05-26T17:02:03Z")

</div>

On 5/25/06, vlad removed\_email\_address@domain.invalid wrote: ruby → lisp (for those who have not seen the news-group): The ruby-forum is the ruby news group (unfortuntately, that’s not obvious). Personally, I wish…

---

## [Binding Blocks? (in Tk, for example)](https://www.ruby-forum.com/t/binding-blocks-in-tk-for-example/61720)

<div class="topic-metadata">

**Author:** [@Mat\_S](https://www.ruby-forum.com/u/Mat_S)\
**Replies:** 4\
**Last updated:** [May 26, 2006, 3:55pm UTC](https://www.ruby-forum.com/t/binding-blocks-in-tk-for-example/61720 "2006-05-26T15:55:08Z")

</div>

So I was playing with ruby-tk and this syntax really suprised me: TkLabel.new { text “Hello, World” pack … } ‘text’ isn’t available outside the block, so I assume the function is getting evaulated in TkLabel’s scop…

---

## [How to access a classes private method](https://www.ruby-forum.com/t/how-to-access-a-classes-private-method/95281)

<div class="topic-metadata">

**Author:** [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Replies:** 5\
**Last updated:** [May 26, 2006, 3:26pm UTC](https://www.ruby-forum.com/t/how-to-access-a-classes-private-method/95281 "2006-05-26T15:26:57Z")

</div>

I’m trying to call a classes protected method but I can’t seem to get it to work. Here’s an example of the method I’m trying to call moule Foo Class Bar protected def bars\_method(a=2) a end end end Here’s what…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/95283)

<div class="topic-metadata">

**Author:** [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Replies:** 1\
**Last updated:** [May 26, 2006, 3:13pm UTC](https://www.ruby-forum.com/t/no-subject/95283 "2006-05-26T15:13:55Z")

</div>

\-------- Forwarded Message -------- From: Charlie B. removed\_email\_address@domain.invalid Subject: Re: How to access a classes private method Date: Fri, 26 May 2006 09:07:04 -0400 I’m trying to modify someone else’s …

---

## [Re: help regarding extracting a particular value in a file](https://www.ruby-forum.com/t/re-help-regarding-extracting-a-particular-value-in-a-file/95282)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [May 26, 2006, 3:13pm UTC](https://www.ruby-forum.com/t/re-help-regarding-extracting-a-particular-value-in-a-file/95282 "2006-05-26T15:13:48Z")

</div>

In that case, you can use this (I follow the convention that numbering of lines and of entries starts with 0, but you can subtract 1 in the brackets, if you prefer starting at 1 in the function call): class String …

---

## [Making 1.8.4 default](https://www.ruby-forum.com/t/making-1-8-4-default/95279)

<div class="topic-metadata">

**Author:** [@Bob\_Brander](https://www.ruby-forum.com/u/Bob_Brander)\
**Replies:** 1\
**Last updated:** [May 26, 2006, 2:03pm UTC](https://www.ruby-forum.com/t/making-1-8-4-default/95279 "2006-05-26T14:03:43Z")

</div>

I’ve tried installing ruby 1.8.4 on my Mac OS X, but ruby 1.8.2 remains my default. How do I make 1.8.4 my default?

---

## [Regexp to esclude substrings](https://www.ruby-forum.com/t/regexp-to-esclude-substrings/61583)

<div class="topic-metadata">

**Author:** [@vincent](https://www.ruby-forum.com/u/vincent)\
**Replies:** 3\
**Last updated:** [May 26, 2006, 12:36pm UTC](https://www.ruby-forum.com/t/regexp-to-esclude-substrings/61583 "2006-05-26T12:36:59Z")

</div>

I’m trying to resolve a very simple problem, but I’m encountering some issues. Input: “this is a string where you can find some words” Output: \[this, string, where, can, find, some, words\] So I’m trying to eliminate …

---

## [Differences between Ruby 1.8 and 1.9](https://www.ruby-forum.com/t/differences-between-ruby-1-8-and-1-9/61704)

<div class="topic-metadata">

**Author:** [@Vlad\_GALU](https://www.ruby-forum.com/u/Vlad_GALU)\
**Replies:** 1\
**Last updated:** [May 26, 2006, 12:33pm UTC](https://www.ruby-forum.com/t/differences-between-ruby-1-8-and-1-9/61704 "2006-05-26T12:33:50Z")

</div>

I thought of giving 1.9 a try and from what I saw by googling there are a number of differences between the two branches in matters of syntax and semantics. Is there a list of them somewhere which I can dig into ? Tha…

---

## [Method '!='](https://www.ruby-forum.com/t/method/95278)

<div class="topic-metadata">

**Author:** [@victor123789](https://www.ruby-forum.com/u/victor123789)\
**Replies:** 19\
**Last updated:** [May 26, 2006, 11:11am UTC](https://www.ruby-forum.com/t/method/95278 "2006-05-26T11:11:44Z")

</div>

Hello all. I’ve tried something like this: ‘a’.send(’==’, ‘b’) #it works, returns true But ‘a’.send(’!=’, ‘b’) said to me: tricks.rb:11:in Kernel#send': undefined method!=’ for “a”:String (NoMethodError) Where am…

---

## [Re: help regarding extracting a particular value in a file](https://www.ruby-forum.com/t/re-help-regarding-extracting-a-particular-value-in-a-file/61703)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [May 26, 2006, 11:02am UTC](https://www.ruby-forum.com/t/re-help-regarding-extracting-a-particular-value-in-a-file/61703 "2006-05-26T11:02:28Z")

</div>

Assuming that your data is in a file “data\_to\_split.txt” in the same directory, you can do this: file\_name=“data\_to\_split.txt” data\_array=IO.readlines(file\_name) # reads content of file into an Array ( each entry…

---

## [Re: Editor can be extended by Ruby](https://www.ruby-forum.com/t/re-editor-can-be-extended-by-ruby/61705)

<div class="topic-metadata">

**Author:** [@Wang\_Austin-W22255](https://www.ruby-forum.com/u/Wang_Austin-W22255)\
**Replies:** 0\
**Last updated:** [May 26, 2006, 10:47am UTC](https://www.ruby-forum.com/t/re-editor-can-be-extended-by-ruby/61705 "2006-05-26T10:47:07Z")

</div>

Thanks John & Curt , I’m investigating freeride… Austin

---

## [How to get bitmap file via ethernet](https://www.ruby-forum.com/t/how-to-get-bitmap-file-via-ethernet/61687)

<div class="topic-metadata">

**Author:** [@harry](https://www.ruby-forum.com/u/harry)\
**Replies:** 2\
**Last updated:** [May 26, 2006, 10:28am UTC](https://www.ruby-forum.com/t/how-to-get-bitmap-file-via-ethernet/61687 "2006-05-26T10:28:21Z")

</div>

I have connected a PC (Windows2000) to a camera controller and I want to get image data from the controller. Two ports are used for this. Port 8500 is for text commands and text replies. Port 8501 is used for image …

---

## [Help regarding extracting a particular value in a file](https://www.ruby-forum.com/t/help-regarding-extracting-a-particular-value-in-a-file/61697)

<div class="topic-metadata">

**Author:** [@Tanushree\_B](https://www.ruby-forum.com/u/Tanushree_B)\
**Replies:** 1\
**Last updated:** [May 26, 2006, 10:16am UTC](https://www.ruby-forum.com/t/help-regarding-extracting-a-particular-value-in-a-file/61697 "2006-05-26T10:16:08Z")

</div>

Hi all , I am new to ruby.I need to retrieve values from a file in my ruby script.That file contains different nos of rows… and in single row i have many parameters which are separated by comma.How can i retrieve a p…

---

## [Re: Two problems using foxGUIb](https://www.ruby-forum.com/t/re-two-problems-using-foxguib/95260)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [May 26, 2006, 8:13am UTC](https://www.ruby-forum.com/t/re-two-problems-using-foxguib/95260 "2006-05-26T08:13:37Z")

</div>

Dear Henon, actually the problem with event editor is not directly in foxGUIb 0.6.1 but in libGUIb 14.0. has been fixed in 14.2. if you’d installed libGUIb 14.2 it would work! Sorry for bothering you about that, …

---

## [RDoc Hacks still out there?](https://www.ruby-forum.com/t/rdoc-hacks-still-out-there/61690)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 3\
**Last updated:** [May 26, 2006, 8:13am UTC](https://www.ruby-forum.com/t/rdoc-hacks-still-out-there/61690 "2006-05-26T08:13:28Z")

</div>

Does anyone know where I can get a copy of RueDoc: RDoc Hacks? http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/153810 James Edward G. II

---

## [YARV speed test: XML processing](https://www.ruby-forum.com/t/yarv-speed-test-xml-processing/61638)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 5\
**Last updated:** [May 26, 2006, 8:10am UTC](https://www.ruby-forum.com/t/yarv-speed-test-xml-processing/61638 "2006-05-26T08:10:13Z")

</div>

I have a small (200 lines) program that processes XML files and creates ruby object trees. It uses the native Ruby xml library REXML a great deal. On my MacOS X 2GHz macintel system using the latest YARV speed up my …

---

## [Re: win32-eventlog 0.4.0](https://www.ruby-forum.com/t/re-win32-eventlog-0-4-0/61695)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 0\
**Last updated:** [May 26, 2006, 6:35am UTC](https://www.ruby-forum.com/t/re-win32-eventlog-0-4-0/61695 "2006-05-26T06:35:53Z")

</div>

From: Daniel B. \[mailto:removed\_email\_address@domain.invalid\] The Win32 Utils Team is pleased to announce the release of version 0.4.0 of the win32-eventlog package! What’s new? =========== It’s now pure Ruby! It…

---

## [Problem accessing a table inside a form in Watir](https://www.ruby-forum.com/t/problem-accessing-a-table-inside-a-form-in-watir/61337)

<div class="topic-metadata">

**Author:** [@arvind](https://www.ruby-forum.com/u/arvind)\
**Replies:** 1\
**Last updated:** [May 26, 2006, 5:00am UTC](https://www.ruby-forum.com/t/problem-accessing-a-table-inside-a-form-in-watir/61337 "2006-05-26T05:00:48Z")

</div>

Hi all, I want to access a table which is inside a form. I want to access a link which is inside a table by row number and column number, the table is inside a form. The table name is not there, so i have to access th…

---

## [Ruby for Rails Rocks!](https://www.ruby-forum.com/t/ruby-for-rails-rocks/60858)

<div class="topic-metadata">

**Author:** [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Replies:** 2\
**Last updated:** [May 26, 2006, 4:54am UTC](https://www.ruby-forum.com/t/ruby-for-rails-rocks/60858 "2006-05-26T04:54:35Z")

</div>

Folks, Just finished reading (okay, skimming) Ruby for Rails. It’s an excellent choice for someone who is new to Ruby and new to Rails. Props to David Black for writing such an excellent book. It is definitely worth…

---

## [JEdit issues](https://www.ruby-forum.com/t/jedit-issues/95238)

<div class="topic-metadata">

**Author:** [@ReggW](https://www.ruby-forum.com/u/ReggW)\
**Replies:** 2\
**Last updated:** [May 26, 2006, 4:07am UTC](https://www.ruby-forum.com/t/jedit-issues/95238 "2006-05-26T04:07:26Z")

</div>

I finally got JEdit working, but I can’t figure out how to get it to run the script, can someone shed some light on this? And also, can IRB be ran from within JEdit? NOTE: I do have the Console plugin installed. Also…

---

## [Ruby 1.8 & soap](https://www.ruby-forum.com/t/ruby-1-8-soap/61681)

<div class="topic-metadata">

**Author:** [@tma](https://www.ruby-forum.com/u/tma)\
**Replies:** 3\
**Last updated:** [May 26, 2006, 2:57am UTC](https://www.ruby-forum.com/t/ruby-1-8-soap/61681 "2006-05-26T02:57:51Z")

</div>

I’m trying to run some test scripts using SOAP on a debian installation. ruby 1.8.4 (2005-12-24) \[i486-linux\] There’s nothing in the ri docs tree or anything else that I can find which knows the PATH to the objects (…

---

## [Array#delete\_if! - a method to delete and return all array i](https://www.ruby-forum.com/t/array-delete-if-a-method-to-delete-and-return-all-array-i/61668)

<div class="topic-metadata">

**Author:** [@alder](https://www.ruby-forum.com/u/alder)\
**Replies:** 5\
**Last updated:** [May 26, 2006, 2:05am UTC](https://www.ruby-forum.com/t/array-delete-if-a-method-to-delete-and-return-all-array-i/61668 "2006-05-26T02:05:48Z")

</div>

Here’s a method to delete and return all items in an Array for which the block evaluates to true: class Array def delete\_if! to\_delete = \[\] to\_keep = \[\] each do |item| (yield item) ? to\_delete \<\< item : to\_keep \<\< …

---

## [Re: Retreiving column values from a variable column name](https://www.ruby-forum.com/t/re-retreiving-column-values-from-a-variable-column-name/95272)

<div class="topic-metadata">

**Author:** [@DEBAUNS\_STEVE\_SAG-C](https://www.ruby-forum.com/u/DEBAUNS_STEVE_SAG-C)\
**Replies:** 0\
**Last updated:** [May 26, 2006, 1:32am UTC](https://www.ruby-forum.com/t/re-retreiving-column-values-from-a-variable-column-name/95272 "2006-05-26T01:32:02Z")

</div>

text = shape.send§ essentially calls a method named ‘p’. So: ‘foo’.send(‘upcase’) =\> ‘FOO’ sd

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

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