# Ruby

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

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

---

## [Small question about ruby -c](https://www.ruby-forum.com/t/small-question-about-ruby-c/49683)

<div class="topic-metadata">

**Author:** [@pat.eyler](https://www.ruby-forum.com/u/pat.eyler)\
**Replies:** 3\
**Last updated:** [December 7, 2005, 6:53pm UTC](https://www.ruby-forum.com/t/small-question-about-ruby-c/49683 "2005-12-07T18:53:18Z")

</div>

interesting little bug (I think) When generating the answer to a previous email, I ran ruby -c against a script and got ‘syntax ok’. (as expected) I then changed an if/else/end to if/otherwise/end, ran ruby -c aga…

---

## [\[ANN\] Amrita2 1.9.6](https://www.ruby-forum.com/t/ann-amrita2-1-9-6/49661)

<div class="topic-metadata">

**Author:** [@tnakajima](https://www.ruby-forum.com/u/tnakajima)\
**Replies:** 6\
**Last updated:** [December 7, 2005, 6:45pm UTC](https://www.ruby-forum.com/t/ann-amrita2-1-9-6/49661 "2005-12-07T18:45:09Z")

</div>

Amrita2 is a XML/HTML template library for Ruby. I released a new version 1.9.6 as BETA1 for 2.0. Get it from http://amrita2.rubyforge.org/ I reduced undocumented features and refactored much to prepare the comming …

---

## [Full-time Position Available in CA](https://www.ruby-forum.com/t/full-time-position-available-in-ca/49685)

<div class="topic-metadata">

**Author:** [@atlasintel](https://www.ruby-forum.com/u/atlasintel)\
**Replies:** 0\
**Last updated:** [December 7, 2005, 5:58pm UTC](https://www.ruby-forum.com/t/full-time-position-available-in-ca/49685 "2005-12-07T17:58:24Z")

</div>

Hello - I looked through the forums and wasn’t sure where to post this opportunity; please feel free to email me with any questions. If you are interested or know of someone who would be a good fit, my email is remove…

---

## [Interactive browser/IDE for Ruby](https://www.ruby-forum.com/t/interactive-browser-ide-for-ruby/49535)

<div class="topic-metadata">

**Author:** [@mark.ericson](https://www.ruby-forum.com/u/mark.ericson)\
**Replies:** 2\
**Last updated:** [December 7, 2005, 5:52pm UTC](https://www.ruby-forum.com/t/interactive-browser-ide-for-ruby/49535 "2005-12-07T17:52:03Z")

</div>

I’m sure this has been asked before on this list… I was wondering if there are any Smalltalk-like IDE/Browser environments in the works for Ruby? Certainly there are differences between an image-based environment lik…

---

## [Screen scraping an html text contents into a file](https://www.ruby-forum.com/t/screen-scraping-an-html-text-contents-into-a-file/52506)

<div class="topic-metadata">

**Author:** [@basi\_lio](https://www.ruby-forum.com/u/basi_lio)\
**Replies:** 15\
**Last updated:** [December 7, 2005, 5:47pm UTC](https://www.ruby-forum.com/t/screen-scraping-an-html-text-contents-into-a-file/52506 "2005-12-07T17:47:58Z")

</div>

Hello, I’m looking for a screen scraper that will extract text contents off html pages and save the text into files. I have looked at Mechanize and Rubyful\_Soup, but they are a bit over my head to modify to save just …

---

## [Profiling question](https://www.ruby-forum.com/t/profiling-question/49679)

<div class="topic-metadata">

**Author:** [@skaes](https://www.ruby-forum.com/u/skaes)\
**Replies:** 2\
**Last updated:** [December 7, 2005, 5:07pm UTC](https://www.ruby-forum.com/t/profiling-question/49679 "2005-12-07T17:07:12Z")

</div>

During profiling some code using ruby 1.8.2 and standard profiler, I have discovered that class method execution time doesn’t get attributed to the class where the method is defined. Instead it gets attributed to the …

---

## [One-Click Ruby Installer](https://www.ruby-forum.com/t/one-click-ruby-installer/49663)

<div class="topic-metadata">

**Author:** [@kishor.gurtu](https://www.ruby-forum.com/u/kishor.gurtu)\
**Replies:** 3\
**Last updated:** [December 7, 2005, 4:46pm UTC](https://www.ruby-forum.com/t/one-click-ruby-installer/49663 "2005-12-07T16:46:51Z")

</div>

Any idea when this will be updated to 1.8.3? Thanks. Kishor.

---

## [Re: Mixins and variables](https://www.ruby-forum.com/t/re-mixins-and-variables/52667)

<div class="topic-metadata">

**Author:** [@daniels](https://www.ruby-forum.com/u/daniels)\
**Replies:** 6\
**Last updated:** [December 7, 2005, 4:26pm UTC](https://www.ruby-forum.com/t/re-mixins-and-variables/52667 "2005-12-07T16:26:23Z")

</div>

It’s got nothing to do with mixins: class TestClass def x=(arg) @x = arg end def x @x end def monkey(arg) x = arg end end irb(main):012:0\> a = TestClass.new =\> #TestClass:0x2ac6e48 irb(main):013:0\> a.monkey…

---

## [In need of help. Win32Ole objWMIService.Create?](https://www.ruby-forum.com/t/in-need-of-help-win32ole-objwmiservice-create/49639)

<div class="topic-metadata">

**Author:** [@d0t1q](https://www.ruby-forum.com/u/d0t1q)\
**Replies:** 1\
**Last updated:** [December 7, 2005, 4:18pm UTC](https://www.ruby-forum.com/t/in-need-of-help-win32ole-objwmiservice-create/49639 "2005-12-07T16:18:16Z")

</div>

objWMIService.Create takes a parameter which is set to the pid of a given process… IE: ------start\_process.vbs----- strComputer = “.” Set objWMIService = GetObject(“winmgmts:\\.\\root\\cimv2:Win32\_Process”) Error = ob…

---

## [Mixins and variables](https://www.ruby-forum.com/t/mixins-and-variables/49644)

<div class="topic-metadata">

**Author:** [@johannes.friestad](https://www.ruby-forum.com/u/johannes.friestad)\
**Replies:** 1\
**Last updated:** [December 7, 2005, 3:33pm UTC](https://www.ruby-forum.com/t/mixins-and-variables/49644 "2005-12-07T15:33:21Z")

</div>

Hi, I’m new to Ruby, and trying to figure out how the inheritance/mixin works: I can’t figure out how to set an instance variable with a mixin method from the object’s initialize(). Example: module TestMod def x @…

---

## [Switch User Agent](https://www.ruby-forum.com/t/switch-user-agent/49672)

<div class="topic-metadata">

**Author:** [@alexamat](https://www.ruby-forum.com/u/alexamat)\
**Replies:** 3\
**Last updated:** [December 7, 2005, 3:25pm UTC](https://www.ruby-forum.com/t/switch-user-agent/49672 "2005-12-07T15:25:09Z")

</div>

Hi all I’m writing an application in ruby and I need to change the UAProof of an HTTP request that I’m sending out. (To pretend that my browser is a mobile phone) does anyone know how to go about it. Many thanks

---

## [Interfaces in Ruby?](https://www.ruby-forum.com/t/interfaces-in-ruby/49638)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 3\
**Last updated:** [December 7, 2005, 3:21pm UTC](https://www.ruby-forum.com/t/interfaces-in-ruby/49638 "2005-12-07T15:21:04Z")

</div>

I’m new to Ruby - actually new to dynamically typed languages in general. I’m from more of a C++ and C# (strongly-typed and statically-typed) background. One thing I’m trying to wrap my brain around is the lack of ex…

---

## [Variable score](https://www.ruby-forum.com/t/variable-score/95553)

<div class="topic-metadata">

**Author:** [@vnpenguin](https://www.ruby-forum.com/u/vnpenguin)\
**Replies:** 6\
**Last updated:** [December 7, 2005, 12:13pm UTC](https://www.ruby-forum.com/t/variable-score/95553 "2005-12-07T12:13:16Z")

</div>

Hi all, I’m newbie to Ruby. I’m trying to write a small script to parse a text file #----------------------------------------------------------------------------------- regexp1 = … regexp2 = … data.each do |line| …

---

## [Test::Unit Console Runner](https://www.ruby-forum.com/t/test-unit-console-runner/62683)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 2\
**Last updated:** [December 7, 2005, 9:50am UTC](https://www.ruby-forum.com/t/test-unit-console-runner/62683 "2005-12-07T09:50:12Z")

</div>

Is there anyway to pass options to the (wonderful!) Test::Unit Console Runner to do things like increase verbosity: Print all passing tests Print all passing assertions or decrease verbosity: Just the error message…

---

## [Re: nuby: method defined in two classes](https://www.ruby-forum.com/t/re-nuby-method-defined-in-two-classes/52706)

<div class="topic-metadata">

**Author:** [@botp](https://www.ruby-forum.com/u/botp)\
**Replies:** 0\
**Last updated:** [December 7, 2005, 8:57am UTC](https://www.ruby-forum.com/t/re-nuby-method-defined-in-two-classes/52706 "2005-12-07T08:57:16Z")

</div>

Joel VanderWerf \[mailto:removed\_email\_address@domain.invalid\] #Why not define #is\_odd? on Integer? yap, that was my fault :)) Thanks.

---

## [Re: nuby: method defined in two classes](https://www.ruby-forum.com/t/re-nuby-method-defined-in-two-classes/95703)

<div class="topic-metadata">

**Author:** [@botp](https://www.ruby-forum.com/u/botp)\
**Replies:** 0\
**Last updated:** [December 7, 2005, 8:57am UTC](https://www.ruby-forum.com/t/re-nuby-method-defined-in-two-classes/95703 "2005-12-07T08:57:16Z")

</div>

\#From: Trans \[mailto:removed\_email\_address@domain.invalid\] Integer# i was a dumber :slight\_smile: Thanks for the tip, Trans.

---

## [Ruby Event Manager / Scheduler](https://www.ruby-forum.com/t/ruby-event-manager-scheduler/49576)

<div class="topic-metadata">

**Author:** [@bpotier](https://www.ruby-forum.com/u/bpotier)\
**Replies:** 5\
**Last updated:** [December 7, 2005, 8:40am UTC](https://www.ruby-forum.com/t/ruby-event-manager-scheduler/49576 "2005-12-07T08:40:59Z")

</div>

In the scope of a project management tool development, we would need to create an automated process that would trigger certain actions (read some ruby code) based on certain dates (as defined by the project). This wou…

---

## [Nuby: method defined in two classes](https://www.ruby-forum.com/t/nuby-method-defined-in-two-classes/49651)

<div class="topic-metadata">

**Author:** [@botp](https://www.ruby-forum.com/u/botp)\
**Replies:** 2\
**Last updated:** [December 7, 2005, 8:20am UTC](https://www.ruby-forum.com/t/nuby-method-defined-in-two-classes/49651 "2005-12-07T08:20:27Z")

</div>

Hi Friends, I have the ff code below. It works but you can see that i have duplicated the “is\_odd?” method on both Fixnum and Bignum. I am just asking for something more cleaner/elegant… thanks and kind regards -botp …

---

## [Question concerning multiline regexps and best practice](https://www.ruby-forum.com/t/question-concerning-multiline-regexps-and-best-practice/49618)

<div class="topic-metadata">

**Author:** [@oliver.andrich](https://www.ruby-forum.com/u/oliver.andrich)\
**Replies:** 8\
**Last updated:** [December 7, 2005, 8:20am UTC](https://www.ruby-forum.com/t/question-concerning-multiline-regexps-and-best-practice/49618 "2005-12-07T08:20:27Z")

</div>

Hi, I am currently moving an application from Python to Ruby for a training purpose and to learn Ruby. Inside this application I am parsing text files delivered by news agencies. These follow more or less a specifica…

---

## [Snmp with s2nmp or rubyonrails](https://www.ruby-forum.com/t/snmp-with-s2nmp-or-rubyonrails/49658)

<div class="topic-metadata">

**Author:** [@hemtirik](https://www.ruby-forum.com/u/hemtirik)\
**Replies:** 0\
**Last updated:** [December 7, 2005, 8:12am UTC](https://www.ruby-forum.com/t/snmp-with-s2nmp-or-rubyonrails/49658 "2005-12-07T08:12:19Z")

</div>

Hi all, I’m using Ruby about 3-4 mounts. Now, i want to make a project about network devices with SNMP. But, until this time; i haven’t used rubyonrails yet. Yesterday (i hope) i’ve installed rubyonrails. And i made …

---

## [Re: Mixins and variables](https://www.ruby-forum.com/t/re-mixins-and-variables/95660)

<div class="topic-metadata">

**Author:** [@daniels](https://www.ruby-forum.com/u/daniels)\
**Replies:** 0\
**Last updated:** [December 7, 2005, 6:38am UTC](https://www.ruby-forum.com/t/re-mixins-and-variables/95660 "2005-12-07T06:38:56Z")

</div>

self.x= will be a method call. -----Original Message----- From: Johannes F. \[mailto:removed\_email\_address@domain.invalid\] Sent: Wednesday, 7 December 2005 4:29 PM To: ruby-talk ML Subject: Re: Mixins and variables …

---

## [How best to handle errors in object instaintiation (sp ?)](https://www.ruby-forum.com/t/how-best-to-handle-errors-in-object-instaintiation-sp/49554)

<div class="topic-metadata">

**Author:** [@russellf](https://www.ruby-forum.com/u/russellf)\
**Replies:** 3\
**Last updated:** [December 7, 2005, 6:22am UTC](https://www.ruby-forum.com/t/how-best-to-handle-errors-in-object-instaintiation-sp/49554 "2005-12-07T06:22:25Z")

</div>

Hi, I’m new to Ruby and still trying to figure out how best to do things “the Ruby way”. The particular problem I am looking at now is the initialize method of a class I am writing. Several things can go wrong in ca…

---

## [RbDynamicMethod first drop](https://www.ruby-forum.com/t/rbdynamicmethod-first-drop/49643)

<div class="topic-metadata">

**Author:** [@drjflam](https://www.ruby-forum.com/u/drjflam)\
**Replies:** 0\
**Last updated:** [December 7, 2005, 6:06am UTC](https://www.ruby-forum.com/t/rbdynamicmethod-first-drop/49643 "2005-12-07T06:06:14Z")

</div>

I just posted a drop of RbDynamicMethod here: http://www.iunknown.com/articles/2005/12/06/first-drop-of-rbdynamicmethod You’ll need a copy of Visual C++ 2005 (probably any edition, but I haven’t tried it on anything …

---

## [Ruby 1.8 fcgi.rb Pipe Closed Exception](https://www.ruby-forum.com/t/ruby-1-8-fcgi-rb-pipe-closed-exception/49637)

<div class="topic-metadata">

**Author:** [@bheinz](https://www.ruby-forum.com/u/bheinz)\
**Replies:** 0\
**Last updated:** [December 7, 2005, 3:20am UTC](https://www.ruby-forum.com/t/ruby-1-8-fcgi-rb-pipe-closed-exception/49637 "2005-12-07T03:20:15Z")

</div>

Anyone have any ideas on this? This is running a rails app with webrick. See post Errno::E232 (The pipe is being closed.) - Rails - Ruby-Forum Sorry to create a duplicate post but I am not sure if this is a rails sp…

---

## [Updating the original reference of a variable](https://www.ruby-forum.com/t/updating-the-original-reference-of-a-variable/49425)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 2\
**Last updated:** [December 7, 2005, 1:46am UTC](https://www.ruby-forum.com/t/updating-the-original-reference-of-a-variable/49425 "2005-12-07T01:46:44Z")

</div>

I’m working on a library similar to what DL does and I’m having a problem with implementing variables that are to be passed as pointers. I have all the C side code working, the problem is updating the original variabl…

---

## [Determining endianness in extconf.rb](https://www.ruby-forum.com/t/determining-endianness-in-extconf-rb/49531)

<div class="topic-metadata">

**Author:** [@aaron\_patterson](https://www.ruby-forum.com/u/aaron_patterson)\
**Replies:** 5\
**Last updated:** [December 7, 2005, 1:06am UTC](https://www.ruby-forum.com/t/determining-endianness-in-extconf-rb/49531 "2005-12-07T01:06:11Z")

</div>

Hi. Hopefully this is the right list for this question! I am writing an extension for Ruby in C, and I need to determine the endianness of the machine and set a flag when I compile. What is the best way to go about …

---

## [Subclassing Class](https://www.ruby-forum.com/t/subclassing-class/49552)

<div class="topic-metadata">

**Author:** [@john.carter](https://www.ruby-forum.com/u/john.carter)\
**Replies:** 26\
**Last updated:** [December 7, 2005, 12:01am UTC](https://www.ruby-forum.com/t/subclassing-class/49552 "2005-12-07T00:01:06Z")

</div>

Ok. This is a wild idea. I don’t like the factory pattern. We don’t need no stinkin Factories. We have the Class object. All a Factory is really Class. However, a traditional Factory object can have… State. Richer …

---

## [Simple scope question](https://www.ruby-forum.com/t/simple-scope-question/49593)

<div class="topic-metadata">

**Author:** [@nospam](https://www.ruby-forum.com/u/nospam)\
**Replies:** 3\
**Last updated:** [December 7, 2005, 12:01am UTC](https://www.ruby-forum.com/t/simple-scope-question/49593 "2005-12-07T00:01:05Z")

</div>

Is it possible to place another file within the same scope as another file that loads it? For example, I can’t get this to work: #!/usr/bin/env ruby file1.rb file1 = “something” #!/usr/bin/env ruby file2.rb load ‘fil…

---

## [Recursive Rake](https://www.ruby-forum.com/t/recursive-rake/95454)

<div class="topic-metadata">

**Author:** [@tanner.burson](https://www.ruby-forum.com/u/tanner.burson)\
**Replies:** 4\
**Last updated:** [December 6, 2005, 9:01pm UTC](https://www.ruby-forum.com/t/recursive-rake/95454 "2005-12-06T21:01:25Z")

</div>

Hello all, I’m working on a very large set of build tasks for several .NET projects. I’ve come up with a fairly simple rake script that with slight modification (differing includes, resources, output type, etc) is a…

---

## [1.8.4: nightly smapshot results](https://www.ruby-forum.com/t/1-8-4-nightly-smapshot-results/62105)

<div class="topic-metadata">

**Author:** [@hgs](https://www.ruby-forum.com/u/hgs)\
**Replies:** 0\
**Last updated:** [December 6, 2005, 8:00pm UTC](https://www.ruby-forum.com/t/1-8-4-nightly-smapshot-results/62105 "2005-12-06T20:00:13Z")

</div>

I’ve just tried to build the nightly snapshot with GCC 4.0.2 on solaris2.9. The built in tests passed but there were lots of warnings. http://www.eng.cse.dmu.ac.uk/~hgs/ruby/test\_results.tmp Note to those reading th…

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

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