# Ruby

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

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

---

## [About class variable question?](https://www.ruby-forum.com/t/about-class-variable-question/147492)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 6\
**Last updated:** [September 3, 2008, 8:38am UTC](https://www.ruby-forum.com/t/about-class-variable-question/147492 "2008-09-03T08:38:04Z")

</div>

Please see this code below. It will get “can’t convert nil to string error”. Why can’t the @name be assigned? I have set the @name = “world”. class Hello @name=“world” def say puts "Hello "+@name end end h=Hello.…

---

## [Compiler for gems](https://www.ruby-forum.com/t/compiler-for-gems/147479)

<div class="topic-metadata">

**Author:** [@hans-dampf](https://www.ruby-forum.com/u/hans-dampf)\
**Replies:** 2\
**Last updated:** [September 3, 2008, 7:26am UTC](https://www.ruby-forum.com/t/compiler-for-gems/147479 "2008-09-03T07:26:27Z")

</div>

How can I define, which c-compiler should be used installing gems with c-code on windows? Is there a possibility to select a compiler (mingw, bcc32, cygwin) or does it always use msvc?

---

## [\[Bug #536\] $B\<B9T%U%!%$%k$N#19TL\\$K(B-E$B%\*%W%7%g%s$rCV$/$H%(%i!\<(B](https://www.ruby-forum.com/t/bug-536-b-b9t-u-k-n-19tl-k-b-e-b-w-7-g-s-rcv-h-i-b/147564)

<div class="topic-metadata">

**Author:** [@Takeyuki\_F](https://www.ruby-forum.com/u/Takeyuki_F)\
**Replies:** 2\
**Last updated:** [September 3, 2008, 7:16am UTC](https://www.ruby-forum.com/t/bug-536-b-b9t-u-k-n-19tl-k-b-e-b-w-7-g-s-rcv-h-i-b/147564 "2008-09-03T07:16:43Z")

</div>

Bug #536: e$B\<B9T%U%!%$%k$N#19TL$Ke(B-Ee$B%\*%W%7%g%s$rCV$/$H%(%i!\<e(B http://redmine.ruby-lang.org/issues/show/536 e$B5/I\<\<Te(B: Takeyuki F. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal #!ruby19 -E euc-jp p Encodin…

---

## [Refactoring suppoted in DLTK 1.0?](https://www.ruby-forum.com/t/refactoring-suppoted-in-dltk-1-0/147560)

<div class="topic-metadata">

**Author:** [@Akira\_Hayakawa](https://www.ruby-forum.com/u/Akira_Hayakawa)\
**Replies:** 0\
**Last updated:** [September 3, 2008, 5:20am UTC](https://www.ruby-forum.com/t/refactoring-suppoted-in-dltk-1-0/147560 "2008-09-03T05:20:22Z")

</div>

I downloaded ruby DLTK from HERE http://download.eclipse.org/technology/dltk/downloads/drops/R1.0/S-1.0M1-200808150915/ the bundle package. see very simple test program below, class ClassTest def initialize(name\_str…

---

## [Rb\_require() causes segfault](https://www.ruby-forum.com/t/rb-require-causes-segfault/147439)

<div class="topic-metadata">

**Author:** [@Bertram\_S](https://www.ruby-forum.com/u/Bertram_S)\
**Replies:** 5\
**Last updated:** [September 3, 2008, 5:11am UTC](https://www.ruby-forum.com/t/rb-require-causes-segfault/147439 "2008-09-03T05:11:36Z")

</div>

Hi, calling rb\_require() with a file name that will not be found, causes a segmentation fault to be raised: ruby: \[BUG\] Segmentation fault ruby 1.8.6 (2008-08-11) \[i386-freebsd7\] Abort trap: 6 (core dumped) It’s th…

---

## [\[Bug:1.9\] RubyGems $B$N(B CommandManager $B$,(B singleton $B$K$J$C$F$$$J$$(B](https://www.ruby-forum.com/t/bug-1-9-rubygems-b-n-b-commandmanager-b-b-singleton-b-k-j-c-f-j-b/146871)

<div class="topic-metadata">

**Author:** [@okkez](https://www.ruby-forum.com/u/okkez)\
**Replies:** 1\
**Last updated:** [September 3, 2008, 4:35am UTC](https://www.ruby-forum.com/t/bug-1-9-rubygems-b-n-b-commandmanager-b-b-singleton-b-k-j-c-f-j-b/146871 "2008-09-03T04:35:57Z")

</div>

okkez e$B$G$9!#e(B lib/rubygems/command\_manager.rb e$B$GDj5A$5$l$F$$$ke(B Gem::CommandManager e$B%/%i%9$G$9$,!"%=!\<%9%3!\<%I$rFI$s$G$\_$?8B$j$G$Oe(B singleton e$B$K$7$?$+$C$?$N$8$c$J$$$+$H;W$&$N$G$9$,$$$+$,$G$7$g$&$+!)e…

---

## [Class.descendant\_of?](https://www.ruby-forum.com/t/class-descendant-of/147553)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 3\
**Last updated:** [September 3, 2008, 4:11am UTC](https://www.ruby-forum.com/t/class-descendant-of/147553 "2008-09-03T04:11:59Z")

</div>

Noob question: class A; end class B \< A; end B.kind\_of?(A) Is there a method that will return true if the class is a descendant of that class? Thanks for your help.

---

## [Re: JRuby running on OS X 10.5.4?](https://www.ruby-forum.com/t/re-jruby-running-on-os-x-10-5-4/147544)

<div class="topic-metadata">

**Author:** [@mifi](https://www.ruby-forum.com/u/mifi)\
**Replies:** 1\
**Last updated:** [September 3, 2008, 1:22am UTC](https://www.ruby-forum.com/t/re-jruby-running-on-os-x-10-5-4/147544 "2008-09-03T01:22:20Z")

</div>

Thanks to those who replied. I believe that it was a combination of needing: JRUBY\_HOME set to the correct ‘bin’ directory PATH including a reference to the same jruby-1.1.4/bin directory When these were correct I …

---

## [IronRuby Deployment Scenerio in Future](https://www.ruby-forum.com/t/ironruby-deployment-scenerio-in-future/147000)

<div class="topic-metadata">

**Author:** [@webreservoir](https://www.ruby-forum.com/u/webreservoir)\
**Replies:** 9\
**Last updated:** [September 3, 2008, 12:32am UTC](https://www.ruby-forum.com/t/ironruby-deployment-scenerio-in-future/147000 "2008-09-03T00:32:37Z")

</div>

Hi, I was just reading this blog on www.infoq.com by Neal Ford on Programming Languages and Platforms. He is an experienced employee with Thoughtworks… Here is the link… This paragraph from his blog/interview has …

---

## [JRuby running on OS X 10.5.4?](https://www.ruby-forum.com/t/jruby-running-on-os-x-10-5-4/147543)

<div class="topic-metadata">

**Author:** [@mifi](https://www.ruby-forum.com/u/mifi)\
**Replies:** 5\
**Last updated:** [September 3, 2008, 12:12am UTC](https://www.ruby-forum.com/t/jruby-running-on-os-x-10-5-4/147543 "2008-09-03T00:12:43Z")

</div>

I downloaded the BIN of JRuby 1.1.4 (jruby-bin-1.1.4.tar.gz) and unzipped it into a directory under my home directory (/User//jruby-1.1.4). I have made sure that JRUBY\_HOME points to /Users/me/jruby-1.1.4 and that JA…

---

## [IronRuby r128 on Mono](https://www.ruby-forum.com/t/ironruby-r128-on-mono/145717)

<div class="topic-metadata">

**Author:** [@Seo\_S](https://www.ruby-forum.com/u/Seo_S)\
**Replies:** 7\
**Last updated:** [September 3, 2008, 12:10am UTC](https://www.ruby-forum.com/t/ironruby-r128-on-mono/145717 "2008-09-03T00:10:58Z")

</div>

Updated as usual. http://sparcs.kaist.ac.kr/~tinuviel/download/IronRuby/patch-mono-r128 Tested against Mono 1.9.1 and Mono SVN r110339. Please report any problems. Patch is shrinking! I do appreciate Microsoft’s effo…

---

## [Mono fixes committed](https://www.ruby-forum.com/t/mono-fixes-committed/145906)

<div class="topic-metadata">

**Author:** [@Seo\_S](https://www.ruby-forum.com/u/Seo_S)\
**Replies:** 1\
**Last updated:** [September 3, 2008, 12:01am UTC](https://www.ruby-forum.com/t/mono-fixes-committed/145906 "2008-09-03T00:01:00Z")

</div>

Thanks to Jim D., I got a SVN commit permission yesterday. I have committed Mono fixes, so current SVN trunk should build with Mono SVN trunk (sorry, you can’t build with Mono 1.9.x.) r129: Do not use \*.csproj which c…

---

## [JRuby startup very slow](https://www.ruby-forum.com/t/jruby-startup-very-slow/147184)

<div class="topic-metadata">

**Author:** [@MichSSSSle\_Garoche](https://www.ruby-forum.com/u/MichSSSSle_Garoche)\
**Replies:** 29\
**Last updated:** [September 2, 2008, 11:34pm UTC](https://www.ruby-forum.com/t/jruby-startup-very-slow/147184 "2008-09-02T23:34:39Z")

</div>

Hello, I have two major problems with Rails console within Netbeans 6.5 beta on my Mac PPC system 10.4.11, java 5. I - It takes a huge amount of time to fire the Rails console. (as if takes an even more huge amount o…

---

## [Beginner in Ruby](https://www.ruby-forum.com/t/beginner-in-ruby/196798)

<div class="topic-metadata">

**Author:** [@thiagobrandam](https://www.ruby-forum.com/u/thiagobrandam)\
**Replies:** 9\
**Last updated:** [September 2, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/beginner-in-ruby/196798 "2008-09-02T23:15:12Z")

</div>

Hi all, my name is Thiago and I am completely new to Ruby. I’m having OO class this semester and one of the languages we are using is Ruby. For the final exam, we will have to build a software using OO concepts and my…

---

## [\#jruby IRC logs will operate patchily for a few days](https://www.ruby-forum.com/t/jruby-irc-logs-will-operate-patchily-for-a-few-days/147536)

<div class="topic-metadata">

**Author:** [@munshkr](https://www.ruby-forum.com/u/munshkr)\
**Replies:** 0\
**Last updated:** [September 2, 2008, 10:47pm UTC](https://www.ruby-forum.com/t/jruby-irc-logs-will-operate-patchily-for-a-few-days/147536 "2008-09-02T22:47:35Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Electricians are probing the university wiring for a few days so I’m afraid the logs will be down in the evenings, and occasionally daytime too. Sorry for the inconvenie…

---

## [Re: Open3 and ssh](https://www.ruby-forum.com/t/re-open3-and-ssh/147532)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 0\
**Last updated:** [September 2, 2008, 9:47pm UTC](https://www.ruby-forum.com/t/re-open3-and-ssh/147532 "2008-09-02T21:47:29Z")

</div>

I think your problem is that the -T option explicitly prevents the far end opening a pty. It works for me if I change this to “ssh -tt localhost” (having two -t options forces opening a pty even though the local end …

---

## [Play audio file](https://www.ruby-forum.com/t/play-audio-file/147512)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 2\
**Last updated:** [September 2, 2008, 7:04pm UTC](https://www.ruby-forum.com/t/play-audio-file/147512 "2008-09-02T19:04:02Z")

</div>

Hi all, Does anyone have idea which gem/plug in is used to play audio file under Vista? Thanks, Li

---

## [Self and Current Class](https://www.ruby-forum.com/t/self-and-current-class/147446)

<div class="topic-metadata">

**Author:** [@pedro-silva](https://www.ruby-forum.com/u/pedro-silva)\
**Replies:** 9\
**Last updated:** [September 2, 2008, 6:29pm UTC](https://www.ruby-forum.com/t/self-and-current-class/147446 "2008-09-02T18:29:49Z")

</div>

I know that Ruby always keeps track of two concepts: self and current class. The programmer only can access the first one, that tracks the current object. I know that self is the default receiver when invoking methods …

---

## [Generate uuid](https://www.ruby-forum.com/t/generate-uuid/147079)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 10\
**Last updated:** [September 2, 2008, 6:09pm UTC](https://www.ruby-forum.com/t/generate-uuid/147079 "2008-09-02T18:09:00Z")

</div>

How Can I generate uuid ? any references or Ideas could You people suggest.I have not even heard about it?

---

## [Rdebug 0.10.2, continue not working since last update](https://www.ruby-forum.com/t/rdebug-0-10-2-continue-not-working-since-last-update/147516)

<div class="topic-metadata">

**Author:** [@iberci](https://www.ruby-forum.com/u/iberci)\
**Replies:** 1\
**Last updated:** [September 2, 2008, 6:04pm UTC](https://www.ruby-forum.com/t/rdebug-0-10-2-continue-not-working-since-last-update/147516 "2008-09-02T18:04:53Z")

</div>

just updated to rdebug 0.10.2 this morning and noticed that I can no longer continue to some lines or set a heard break on those same lines c 252 or b 252 anyone else experiencing any issues with 0.10.2 or is it…

---

## [\[Bug:1.9\] method\_missing $B$N:FDj5A$G(B Stack consistency error](https://www.ruby-forum.com/t/bug-1-9-method-missing-b-n-fdj5a-g-b-stack-consistency-error/147333)

<div class="topic-metadata">

**Author:** [@wanabe](https://www.ruby-forum.com/u/wanabe)\
**Replies:** 1\
**Last updated:** [September 2, 2008, 5:27pm UTC](https://www.ruby-forum.com/t/bug-1-9-method-missing-b-n-fdj5a-g-b-stack-consistency-error/147333 "2008-09-02T17:27:42Z")

</div>

e$B%o%J%Y$H?=$7$^$9!#e(B \[Bug #513\] e$B$H;w$?8=\>\]$,e(B vm\_method\_missing e$BCf$Ge(B POPN e$BE~C#A0$Ke(B break e$B$7$?\>l9g$K$b5/$-$k$h$&$G$9!#e(B $ ruby -e ’ def method\_missing(m) yield end foo {break} ’ -e:5: \[B…

---

## [Web widget concept, how does it work?](https://www.ruby-forum.com/t/web-widget-concept-how-does-it-work/147437)

<div class="topic-metadata">

**Author:** [@h4lfl1ng](https://www.ruby-forum.com/u/h4lfl1ng)\
**Replies:** 4\
**Last updated:** [September 2, 2008, 4:39pm UTC](https://www.ruby-forum.com/t/web-widget-concept-how-does-it-work/147437 "2008-09-02T16:39:35Z")

</div>

I want to start a simple web project, a small web widget that users with blogs/webpages can add to their page (like the meebo me widget). The thing is that i dont know what the technical concept behind the whole thing …

---

## [Undo Object.extend](https://www.ruby-forum.com/t/undo-object-extend/147409)

<div class="topic-metadata">

**Author:** [@ji123](https://www.ruby-forum.com/u/ji123)\
**Replies:** 7\
**Last updated:** [September 2, 2008, 4:10pm UTC](https://www.ruby-forum.com/t/undo-object-extend/147409 "2008-09-02T16:10:26Z")

</div>

Hi all: I’m trying to change the behaviour of a specific instance at runtime. I’m using modules in the following way: module NormalBehaviour def talk puts ‘Hi’ end end class A include NormalBehaviour end modul…

---

## [Location Intelligence where to from here?](https://www.ruby-forum.com/t/location-intelligence-where-to-from-here/147497)

<div class="topic-metadata">

**Author:** [@Yellowfin\_Team](https://www.ruby-forum.com/u/Yellowfin_Team)\
**Replies:** 0\
**Last updated:** [September 2, 2008, 3:07pm UTC](https://www.ruby-forum.com/t/location-intelligence-where-to-from-here/147497 "2008-09-02T15:07:57Z")

</div>

Most people have heard of location intelligence tools such as Google Maps, or Geographic Information Systems (GIS). Indeed, mapping technology is used everywhere and can be accessed easily online, from a phone, and on…

---

## [Shooting star - bug resolvin](https://www.ruby-forum.com/t/shooting-star-bug-resolvin/147496)

<div class="topic-metadata">

**Author:** [@balinski](https://www.ruby-forum.com/u/balinski)\
**Replies:** 0\
**Last updated:** [September 2, 2008, 2:57pm UTC](https://www.ruby-forum.com/t/shooting-star-bug-resolvin/147496 "2008-09-02T14:57:18Z")

</div>

I toyed for some time with shooting star plugin for rails. It has bug that prevents it from working in firefox, which makes it unusable for me. Problem lies within firefox security rules that forbids javascript in dif…

---

## [Does this seem useful for you?](https://www.ruby-forum.com/t/does-this-seem-useful-for-you/147484)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 8\
**Last updated:** [September 2, 2008, 2:33pm UTC](https://www.ruby-forum.com/t/does-this-seem-useful-for-you/147484 "2008-09-02T14:33:52Z")

</div>

Hi list class Object def map\_messages \*messages messages.map{ | message | send message } end end Does anybody else than me think that this would be nice to have in core? Cheers Robert C’est véritablement utile pu…

---

## [Difficult Inheritance Problem](https://www.ruby-forum.com/t/difficult-inheritance-problem/146991)

<div class="topic-metadata">

**Author:** [@tobycatlin](https://www.ruby-forum.com/u/tobycatlin)\
**Replies:** 14\
**Last updated:** [September 2, 2008, 2:25pm UTC](https://www.ruby-forum.com/t/difficult-inheritance-problem/146991 "2008-09-02T14:25:39Z")

</div>

Hi all, I have a problem I can’t think of a solution to with regard to inheritence. I have an abstract class that others inherit from: class DataObject class \<\< self attr\_accessor :difference\_mapping ... end … …

---

## [Escaping '](https://www.ruby-forum.com/t/escaping/147480)

<div class="topic-metadata">

**Author:** [@vanight](https://www.ruby-forum.com/u/vanight)\
**Replies:** 3\
**Last updated:** [September 2, 2008, 1:49pm UTC](https://www.ruby-forum.com/t/escaping/147480 "2008-09-02T13:49:21Z")

</div>

Hi, I need to replace ’ by '. How can I do that? Thanks

---

## [Gem command hangs with no output](https://www.ruby-forum.com/t/gem-command-hangs-with-no-output/147181)

<div class="topic-metadata">

**Author:** [@eeby](https://www.ruby-forum.com/u/eeby)\
**Replies:** 4\
**Last updated:** [September 2, 2008, 1:45pm UTC](https://www.ruby-forum.com/t/gem-command-hangs-with-no-output/147181 "2008-09-02T13:45:39Z")

</div>

Tried to run “gem outdated” on my CentOS 5 server. It just hung with no response on the command line for about 10 minutes. After that, tried “gem update passenger”. I got… Updating installed gems… Bulk updating Gem s…

---

## [Record cannot be saved](https://www.ruby-forum.com/t/record-cannot-be-saved/147485)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [September 2, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/record-cannot-be-saved/147485 "2008-09-02T12:30:36Z")

</div>

Hi, all! Maybe a noob question, sorry, but I’m really stuck with this. I have 2 models with has\_many and belongs\_to associations. class Transaction \< ActiveRecord::Base has\_many :bonuses, :class\_name =\> ‘Transaction…

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

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