# Ruby

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

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

---

## [What is the best way to edit a file to eliminate a line usin](https://www.ruby-forum.com/t/what-is-the-best-way-to-edit-a-file-to-eliminate-a-line-usin/49216)

<div class="topic-metadata">

**Author:** [@steve\_rubytalk](https://www.ruby-forum.com/u/steve_rubytalk)\
**Replies:** 16\
**Last updated:** [December 2, 2005, 12:56pm UTC](https://www.ruby-forum.com/t/what-is-the-best-way-to-edit-a-file-to-eliminate-a-line-usin/49216 "2005-12-02T12:56:05Z")

</div>

This sounds an easy task, but I’m certain that I’m yet to find the most elegant solution. I have a text file which I want to process using ruby in order to update it. I want to remove the single line which matches a …

---

## [String + Range = Strange](https://www.ruby-forum.com/t/string-range-strange/49215)

<div class="topic-metadata">

**Author:** [@martindemello](https://www.ruby-forum.com/u/martindemello)\
**Replies:** 6\
**Last updated:** [December 2, 2005, 12:47pm UTC](https://www.ruby-forum.com/t/string-range-strange/49215 "2005-12-02T12:47:59Z")

</div>

How does this work? irb(main):002:0\> (“a”…“z”).to\_a =\> \[“a”, “b”, “c”, “d”, “e”, “f”, “g”, “h”, “i”, “j”, “k”, “l”, “m”, “n”, “o”, “p”, “q”, “r”, “s”, “t”, “u”, “v”, “w”, “x”, “y”, “z”\] irb(main):003:0\> (“aa”…“z”).to…

---

## [How can I install ruby-xslt?](https://www.ruby-forum.com/t/how-can-i-install-ruby-xslt/49305)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 2, 2005, 12:21pm UTC](https://www.ruby-forum.com/t/how-can-i-install-ruby-xslt/49305 "2005-12-02T12:21:14Z")

</div>

Hello, I can’t figure how I to install ruby-xslt (downloaded from this page: http://www.rubyfr.net/). I am using MS Windows, ruby is installed using the 1-click installer. When I decompress the archive, i can see the…

---

## [Re: SPSS](https://www.ruby-forum.com/t/re-spss/93653)

<div class="topic-metadata">

**Author:** [@Nuralanur](https://www.ruby-forum.com/u/Nuralanur)\
**Replies:** 1\
**Last updated:** [December 2, 2005, 11:51am UTC](https://www.ruby-forum.com/t/re-spss/93653 "2005-12-02T11:51:06Z")

</div>

Dear Mike, now, … SPSS is commercial software… I was wondering what you think of R, or GNU S, \_http://www.r-project.org/\_ (http://www.r-project.org/) . In three minutes of googling, (and no further experimentation o…

---

## [HTML Editor Component for Ruby on Rails](https://www.ruby-forum.com/t/html-editor-component-for-ruby-on-rails/49291)

<div class="topic-metadata">

**Author:** [@tomrossi7](https://www.ruby-forum.com/u/tomrossi7)\
**Replies:** 1\
**Last updated:** [December 2, 2005, 11:10am UTC](https://www.ruby-forum.com/t/html-editor-component-for-ruby-on-rails/49291 "2005-12-02T11:10:23Z")

</div>

Does anyone have any suggestions for an HTML editor component that I can use on a Rails web application? Thanks! Tom

---

## [Rio-editing on-the-fly](https://www.ruby-forum.com/t/rio-editing-on-the-fly/49262)

<div class="topic-metadata">

**Author:** [@wybo](https://www.ruby-forum.com/u/wybo)\
**Replies:** 3\
**Last updated:** [December 2, 2005, 9:44am UTC](https://www.ruby-forum.com/t/rio-editing-on-the-fly/49262 "2005-12-02T09:44:54Z")

</div>

according to the rio-docs I would expect it to be possible to edit a file on-the-fly; for example, I tried to make a copy of /etc/passwd with my own name (wybo) replaced with XXXX: rio(’/etc/passwd’).gsub(/wybo/,‘XX…

---

## [Require!](https://www.ruby-forum.com/t/require/87448)

<div class="topic-metadata">

**Author:** [@rosco](https://www.ruby-forum.com/u/rosco)\
**Replies:** 18\
**Last updated:** [December 2, 2005, 9:44am UTC](https://www.ruby-forum.com/t/require/87448 "2005-12-02T09:44:54Z")

</div>

It (finally) clicked now, ‘require’ is just a method… Boy do I feel stupid. :expressionless: On another note, though, I also found out that calling amethod(\*args) works with anything with ‘each’ (any Enumerable?), whi…

---

## [Ruby/Tk: pack() with block doesn't work](https://www.ruby-forum.com/t/ruby-tk-pack-with-block-doesnt-work/49230)

<div class="topic-metadata">

**Author:** [@doodpants](https://www.ruby-forum.com/u/doodpants)\
**Replies:** 2\
**Last updated:** [December 2, 2005, 8:56am UTC](https://www.ruby-forum.com/t/ruby-tk-pack-with-block-doesnt-work/49230 "2005-12-02T08:56:15Z")

</div>

All this talk about Ruby/Tk, particularly the discovery that it all works out of the box on Mac OS 10.4 with X11, has prompted me to start learning to use it. The Pickaxe, along with other documentation that I’ve foun…

---

## [Kirbybase: Displaying a field value](https://www.ruby-forum.com/t/kirbybase-displaying-a-field-value/49295)

<div class="topic-metadata">

**Author:** [@basi\_lio](https://www.ruby-forum.com/u/basi_lio)\
**Replies:** 2\
**Last updated:** [December 2, 2005, 8:48am UTC](https://www.ruby-forum.com/t/kirbybase-displaying-a-field-value/49295 "2005-12-02T08:48:07Z")

</div>

Hello, This is likely to be another one of those embarrassing questions. I have a table of tokens, one token one record, which I’d like to process as strings, for example: tgl\_tokens.select.each do |t| puts t.to\_s …

---

## [Ruby TK GUI questions](https://www.ruby-forum.com/t/ruby-tk-gui-questions/49254)

<div class="topic-metadata">

**Author:** [@htruax](https://www.ruby-forum.com/u/htruax)\
**Replies:** 1\
**Last updated:** [December 2, 2005, 8:35am UTC](https://www.ruby-forum.com/t/ruby-tk-gui-questions/49254 "2005-12-02T08:35:57Z")

</div>

Hello, I added a subject line to my recent email, not sure if that is required. Here are the questions again: I am working on a Ruby TK GUI application and have a couple of questions: I setup a Listbox widget, and…

---

## [Aliasing to an inherited method](https://www.ruby-forum.com/t/aliasing-to-an-inherited-method/49275)

<div class="topic-metadata">

**Author:** [@gavin](https://www.ruby-forum.com/u/gavin)\
**Replies:** 4\
**Last updated:** [December 2, 2005, 7:54am UTC](https://www.ruby-forum.com/t/aliasing-to-an-inherited-method/49275 "2005-12-02T07:54:19Z")

</div>

I tried to modify Daniel S.'s code (in response to the recent “abstract class” thread) to not have an additional method dispatch. This line here: def self.new(\*args, &block) new(\*args, &block) end cries out for a d…

---

## [Can the debugger be called from within an interactive sessio](https://www.ruby-forum.com/t/can-the-debugger-be-called-from-within-an-interactive-sessio/56348)

<div class="topic-metadata">

**Author:** [@billmcn](https://www.ruby-forum.com/u/billmcn)\
**Replies:** 0\
**Last updated:** [December 2, 2005, 6:41am UTC](https://www.ruby-forum.com/t/can-the-debugger-be-called-from-within-an-interactive-sessio/56348 "2005-12-02T06:41:24Z")

</div>

I’m a Ruby newbie. I’ve only been at the language for a little over a week, but so far I’m impressed. My language of choice for the past several years has been Python, so I’m trying to figure out how to do all my fa…

---

## [El4r-1.0.1 - EmacsLisp for Ruby](https://www.ruby-forum.com/t/el4r-1-0-1-emacslisp-for-ruby/49288)

<div class="topic-metadata">

**Author:** [@rubikitch](https://www.ruby-forum.com/u/rubikitch)\
**Replies:** 0\
**Last updated:** [December 2, 2005, 5:08am UTC](https://www.ruby-forum.com/t/el4r-1-0-1-emacslisp-for-ruby/49288 "2005-12-02T05:08:04Z")

</div>

Hi, I have released el4r-1.0.1. This is a bugfix release. Adjusted to Emacs-snapshot. Thank you for bug reports. http://www.rubyist.net/~rubikitch/computer/el4r/index.en.html

---

## [Double posts?](https://www.ruby-forum.com/t/double-posts/92021)

<div class="topic-metadata">

**Author:** [@ezra](https://www.ruby-forum.com/u/ezra)\
**Replies:** 7\
**Last updated:** [December 2, 2005, 3:30am UTC](https://www.ruby-forum.com/t/double-posts/92021 "2005-12-02T03:30:57Z")

</div>

Why is every post I make to the list getting doubled? Or is it just me? I’m using Mail.app on OSX. Cheers- -Ezra Z. Yakima Herald-Republic WebMaster 509-577-7732 removed\_email\_address@domain.invalid

---

## [Labelled text file parsing](https://www.ruby-forum.com/t/labelled-text-file-parsing/49282)

<div class="topic-metadata">

**Author:** [@CBlair1986](https://www.ruby-forum.com/u/CBlair1986)\
**Replies:** 5\
**Last updated:** [December 2, 2005, 3:26am UTC](https://www.ruby-forum.com/t/labelled-text-file-parsing/49282 "2005-12-02T03:26:54Z")

</div>

Hi. What I’d like to do is to take a file like so: Apple Color: Red Peel: Yes Has Core: Yes Orange Color: Orange Peel: Yes Has Core: No and go through it, line by line, assigning the ‘Apple’ and ‘Orange’ lines to…

---

## [String scan on html](https://www.ruby-forum.com/t/string-scan-on-html/49276)

<div class="topic-metadata">

**Author:** [@bruno.bazzani](https://www.ruby-forum.com/u/bruno.bazzani)\
**Replies:** 3\
**Last updated:** [December 2, 2005, 2:18am UTC](https://www.ruby-forum.com/t/string-scan-on-html/49276 "2005-12-02T02:18:12Z")

</div>

Please consider the following code: require ‘net/http’ Net::HTTP.start(‘weather.gmdss.org’) do |http| response = http.get(‘/III.html’) response.body.scan(/\<a.\*a\>/) {|link| puts “#{link}\\n\\n”} end I expect to have e…

---

## [If like smalltalk](https://www.ruby-forum.com/t/if-like-smalltalk/49170)

<div class="topic-metadata">

**Author:** [@jules](https://www.ruby-forum.com/u/jules)\
**Replies:** 8\
**Last updated:** [December 2, 2005, 1:37am UTC](https://www.ruby-forum.com/t/if-like-smalltalk/49170 "2005-12-02T01:37:46Z")

</div>

Hi, I have a question about Ruby if constructs. Why aren’t they like smalltalk if’s, where you have a boolean class and two subclasses: true and false. They both have these methods: ifTrue and ifFalse. If you use a bl…

---

## [Abstract class](https://www.ruby-forum.com/t/abstract-class/91596)

<div class="topic-metadata">

**Author:** [@hochherz](https://www.ruby-forum.com/u/hochherz)\
**Replies:** 8\
**Last updated:** [December 2, 2005, 12:41am UTC](https://www.ruby-forum.com/t/abstract-class/91596 "2005-12-02T00:41:09Z")

</div>

hey is there something like abstract classes in ruby? somehow a class i could not create but wich is a superclass of some classes. thanks olaf

---

## [KirbyBase 2.5](https://www.ruby-forum.com/t/kirbybase-2-5/91846)

<div class="topic-metadata">

**Author:** [@cribbsj](https://www.ruby-forum.com/u/cribbsj)\
**Replies:** 1\
**Last updated:** [December 2, 2005, 12:16am UTC](https://www.ruby-forum.com/t/kirbybase-2-5/91846 "2005-12-02T00:16:54Z")

</div>

I would like to announce the release of version 2.5 of KirbyBase, a small, pure-Ruby database management system that stores it’s data in plain-text files. You can download it here: Windows: http://www.netpromi.com/f…

---

## [Newbie Question](https://www.ruby-forum.com/t/newbie-question/91746)

<div class="topic-metadata">

**Author:** [@mfeadler](https://www.ruby-forum.com/u/mfeadler)\
**Replies:** 2\
**Last updated:** [December 1, 2005, 11:00pm UTC](https://www.ruby-forum.com/t/newbie-question/91746 "2005-12-01T23:00:55Z")

</div>

Greetings all: I’m new to Ruby and loving it thus far. I’ve written a smallish (165lns w/ comments) app to get a feel for some of the language’s idiosyncracies, and I’m wondering if anyone would like to take a look …

---

## [Help getting around iconv on a PC](https://www.ruby-forum.com/t/help-getting-around-iconv-on-a-pc/49265)

<div class="topic-metadata">

**Author:** [@schneida](https://www.ruby-forum.com/u/schneida)\
**Replies:** 3\
**Last updated:** [December 1, 2005, 10:59pm UTC](https://www.ruby-forum.com/t/help-getting-around-iconv-on-a-pc/49265 "2005-12-01T22:59:43Z")

</div>

I’ve just started using Ruby again, and maybe it’s because it’s been awhile since I’ve used it, but I’ve gotten stuck. I want to use the bloglines Webservice API. So, I downloaded and installed it as well as simple-…

---

## [Troubleshooting "undefined class/module"](https://www.ruby-forum.com/t/troubleshooting-undefined-class-module/49258)

<div class="topic-metadata">

**Author:** [@steve.enzer](https://www.ruby-forum.com/u/steve.enzer)\
**Replies:** 0\
**Last updated:** [December 1, 2005, 9:18pm UTC](https://www.ruby-forum.com/t/troubleshooting-undefined-class-module/49258 "2005-12-01T21:18:14Z")

</div>

I’m having a bit of a headbanger here… maybe someone can help. A class in a fairly complicated existing Rails app that I’m working on seems intermittently not to load. The error is basically the following: undefined …

---

## [How can I load my own files to ruby? (Win XP)](https://www.ruby-forum.com/t/how-can-i-load-my-own-files-to-ruby-win-xp/49223)

<div class="topic-metadata">

**Author:** [@Stephan.Kassel](https://www.ruby-forum.com/u/Stephan.Kassel)\
**Replies:** 4\
**Last updated:** [December 1, 2005, 8:33pm UTC](https://www.ruby-forum.com/t/how-can-i-load-my-own-files-to-ruby-win-xp/49223 "2005-12-01T20:33:35Z")

</div>

I am just trying to get some knowledge in Ruby. For this I am playing with some tutorials. In the tutorial I have to save some code to a file and load it afterwards in the irb (with require). I don’t want to mess up …

---

## [WinCE Edition of Ruby?](https://www.ruby-forum.com/t/wince-edition-of-ruby/49235)

<div class="topic-metadata">

**Author:** [@thomas](https://www.ruby-forum.com/u/thomas)\
**Replies:** 2\
**Last updated:** [December 1, 2005, 8:21pm UTC](https://www.ruby-forum.com/t/wince-edition-of-ruby/49235 "2005-12-01T20:21:18Z")

</div>

Hi, I have a PPC with Windows Mobile 2003, and have downloaded the WinCE edition of Ruby, from ruby-mswince. The problem is that I don’t know how to run it - when I click on my pocket PC it doesn’t seem to do anythin…

---

## [Langhelp-0.9.0](https://www.ruby-forum.com/t/langhelp-0-9-0/91613)

<div class="topic-metadata">

**Author:** [@rubikitch](https://www.ruby-forum.com/u/rubikitch)\
**Replies:** 0\
**Last updated:** [December 1, 2005, 7:07pm UTC](https://www.ruby-forum.com/t/langhelp-0-9-0/91613 "2005-12-01T19:07:58Z")

</div>

Hi, == Abstract Langhelp creates an index of documents of various programming languages, and enables you to search documents instantly in Emacs. If you are a programmer, then you may sometimes wonder, what is the us…

---

## [Workflow/Rules Engine in Ruby?](https://www.ruby-forum.com/t/workflow-rules-engine-in-ruby/49204)

<div class="topic-metadata">

**Author:** [@saimon](https://www.ruby-forum.com/u/saimon)\
**Replies:** 5\
**Last updated:** [December 1, 2005, 6:15pm UTC](https://www.ruby-forum.com/t/workflow-rules-engine-in-ruby/49204 "2005-12-01T18:15:21Z")

</div>

Hi all, Does anyone know of any workflow/rule engines implemented in Ruby? Thanks, Saimon

---

## [\[SOLUTION\] Pinewood Derby](https://www.ruby-forum.com/t/solution-pinewood-derby/225891)

<div class="topic-metadata">

**Author:** [@kcollins](https://www.ruby-forum.com/u/kcollins)\
**Replies:** 1\
**Last updated:** [December 1, 2005, 4:58pm UTC](https://www.ruby-forum.com/t/solution-pinewood-derby/225891 "2005-12-01T16:58:02Z")

</div>

\#!/usr/bin/env ruby Pinewood Derby scheduling program. class Scheduler def initialize(car\_count, lane\_count, round\_target) # Set up instance variables for basic data @cars = (1…car\_count).inject(\[\]) { |a,n| a \<\< n …

---

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

<div class="topic-metadata">

**Author:** [@warrenbrown](https://www.ruby-forum.com/u/warrenbrown)\
**Replies:** 2\
**Last updated:** [December 1, 2005, 3:08pm UTC](https://www.ruby-forum.com/t/re-string-range-membership/88583 "2005-12-01T15:08:11Z")

</div>

Dave, Relative new Ruby user. Welcome to Ruby! Let’s see if I’ve got this straight. Somebody complained because (‘1’…‘10’).member?(‘2’) =\> false That is the tip of the iceberg, yes. Good! The fact that Ruby …

---

## [Pinewood Derby Chart (#56)](https://www.ruby-forum.com/t/pinewood-derby-chart-56/91501)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [December 1, 2005, 2:51pm UTC](https://www.ruby-forum.com/t/pinewood-derby-chart-56/91501 "2005-12-01T14:51:24Z")

</div>

by Bob S. \[Ediitor’s Note: I hope everyone noticed that Bob just ran, solved, and summarized a Ruby Q. solo. Take it from me, a guy with a little experience doing that very, not-so-fun thing, we all owe Bob a HUGE …

---

## [Point an element in Hash Object](https://www.ruby-forum.com/t/point-an-element-in-hash-object/49178)

<div class="topic-metadata">

**Author:** [@andrew](https://www.ruby-forum.com/u/andrew)\
**Replies:** 5\
**Last updated:** [December 1, 2005, 2:35pm UTC](https://www.ruby-forum.com/t/point-an-element-in-hash-object/49178 "2005-12-01T14:35:05Z")

</div>

I’m trying to create an hash object using object string for key and value. I need to link a key with another key as value… so an element of hash object can point to another element. But i need the link to the key and …

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

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