# Ruby

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

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

---

## [String constant reference to another class instance variable](https://www.ruby-forum.com/t/string-constant-reference-to-another-class-instance-variable/183119)

<div class="topic-metadata">

**Author:** [@nginxchina](https://www.ruby-forum.com/u/nginxchina)\
**Replies:** 6\
**Last updated:** [February 8, 2010, 6:56pm UTC](https://www.ruby-forum.com/t/string-constant-reference-to-another-class-instance-variable/183119 "2010-02-08T18:56:44Z")

</div>

Hello. How can I be able to do something like this: class Connection attr\_accessor :socket, :name def initialize name @name = name end def connect @socket = TCPSocket.new end def saysomething ‘phora’.say(‘hi!’…

---

## [Gotham Ruby Conference Save The Date](https://www.ruby-forum.com/t/gotham-ruby-conference-save-the-date/183121)

<div class="topic-metadata">

**Author:** [@sdsykes](https://www.ruby-forum.com/u/sdsykes)\
**Replies:** 1\
**Last updated:** [February 8, 2010, 6:29pm UTC](https://www.ruby-forum.com/t/gotham-ruby-conference-save-the-date/183121 "2010-02-08T18:29:49Z")

</div>

Gotham Ruby Conference will take place May 22, 2010 at Pace University. Call for papers and registration announcements to come - please stay tuned. -Thank you, Stephen S.

---

## [Including Module](https://www.ruby-forum.com/t/including-module/167672)

<div class="topic-metadata">

**Author:** [@thangappan](https://www.ruby-forum.com/u/thangappan)\
**Replies:** 4\
**Last updated:** [February 8, 2010, 6:19pm UTC](https://www.ruby-forum.com/t/including-module/167672 "2010-02-08T18:19:55Z")

</div>

I am new to Ruby. Is there any way to include the module in normal ruby file? For an example, Test.rb Class Test.rb … end testing.rb object = Test.new # It tells error.

---

## [Code Review: ActiveRecord fixes](https://www.ruby-forum.com/t/code-review-activerecord-fixes/183107)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 1\
**Last updated:** [February 8, 2010, 6:00pm UTC](https://www.ruby-forum.com/t/code-review-activerecord-fixes/183107 "2010-02-08T18:00:10Z")

</div>

tfpt review “/shelveset:ar;REDMOND\\sborde” Comment : Fixed issue with extra 0s being appended to id. This was being caused by a bug in BigDecimal#to\_i Fixed issue in ironruby-dbi with Statement#fetch being called af…

---

## [Fastest way to iterate over a range in steps](https://www.ruby-forum.com/t/fastest-way-to-iterate-over-a-range-in-steps/182998)

<div class="topic-metadata">

**Author:** [@Aaron\_Gifford](https://www.ruby-forum.com/u/Aaron_Gifford)\
**Replies:** 7\
**Last updated:** [February 8, 2010, 5:51pm UTC](https://www.ruby-forum.com/t/fastest-way-to-iterate-over-a-range-in-steps/182998 "2010-02-08T17:51:59Z")

</div>

What’s the fastest way to iterate over a range in variable increments? For example, using irb (1.9.1): irb(main):001:0\> a=0;s=Time.now;i=0;while(i\<1000000000);a+=i;i+=5;end;e=Time.now;p e-s;p a 8.715433734 99999999…

---

## [Why Duby rather than Groovy?](https://www.ruby-forum.com/t/why-duby-rather-than-groovy/182732)

<div class="topic-metadata">

**Author:** [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Replies:** 12\
**Last updated:** [February 8, 2010, 3:39pm UTC](https://www.ruby-forum.com/t/why-duby-rather-than-groovy/182732 "2010-02-08T15:39:41Z")

</div>

I’m in the market for a Ruby-like dynamic language running on the JVM and am intrigued by Charlie’s work on Duby. It’s an appealing way of generating Java class files in a Ruby-like language. But doesn’t Groovy alread…

---

## [Confused about the superclass](https://www.ruby-forum.com/t/confused-about-the-superclass/183095)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 4\
**Last updated:** [February 8, 2010, 11:06am UTC](https://www.ruby-forum.com/t/confused-about-the-superclass/183095 "2010-02-08T11:06:04Z")

</div>

Hello, irb(main):001:0\> class Myclass irb(main):002:1\> def play irb(main):003:2\> end irb(main):004:1\> end irb(main):027:0\> Myclass.class =\> Class irb(main):028:0\> Myclass.superclass =\> Object irb(main):029:0\>…

---

## [Hashes versus Arrays](https://www.ruby-forum.com/t/hashes-versus-arrays/182842)

<div class="topic-metadata">

**Author:** [@jeromeqc](https://www.ruby-forum.com/u/jeromeqc)\
**Replies:** 10\
**Last updated:** [February 8, 2010, 9:57am UTC](https://www.ruby-forum.com/t/hashes-versus-arrays/182842 "2010-02-08T09:57:15Z")

</div>

Hello, Can someone please explain how you would go about deciding whether to use a Hash or and Array for a given requirement. Can someone give an idiot proof simple explanation including any pros versus cons. Sal

---

## [Using jruby within java](https://www.ruby-forum.com/t/using-jruby-within-java/181984)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 10\
**Last updated:** [February 8, 2010, 9:39am UTC](https://www.ruby-forum.com/t/using-jruby-within-java/181984 "2010-02-08T09:39:41Z")

</div>

Hi, I’ve been following this: http://kenai.com/projects/jruby/pages/DirectJRubyEmbedding#Ruby\_code\_in\_your\_classpath,\_Mixed\_with\_java I had the RubyLaucher code working in a project last year (jruby 1.3) but I can’t…

---

## [Combinatorics and permutations? Help?](https://www.ruby-forum.com/t/combinatorics-and-permutations-help/131562)

<div class="topic-metadata">

**Author:** [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Replies:** 7\
**Last updated:** [February 8, 2010, 7:44am UTC](https://www.ruby-forum.com/t/combinatorics-and-permutations-help/131562 "2010-02-08T07:44:58Z")

</div>

Hi, I have a problem involving combinatorics and permutations and my brain hurts. The problem: I have a hash of products in input. I then build an array of equivalent products for each input product. I end up with an…

---

## [Rescue Block does not work](https://www.ruby-forum.com/t/rescue-block-does-not-work/183090)

<div class="topic-metadata">

**Author:** [@ben-v](https://www.ruby-forum.com/u/ben-v)\
**Replies:** 9\
**Last updated:** [February 8, 2010, 3:00am UTC](https://www.ruby-forum.com/t/rescue-block-does-not-work/183090 "2010-02-08T03:00:26Z")

</div>

Hi all, I am using a begin… rescue… else block to catch a timeout and try again until it succeeds. Despite the rescue block, the program still crashes due to a timeout error. Don’t rescue blocks catch everything? suc…

---

## [Monkeybars dead?](https://www.ruby-forum.com/t/monkeybars-dead/183072)

<div class="topic-metadata">

**Author:** [@Daniel\_VSSSSlkerts](https://www.ruby-forum.com/u/Daniel_VSSSSlkerts)\
**Replies:** 7\
**Last updated:** [February 8, 2010, 1:13am UTC](https://www.ruby-forum.com/t/monkeybars-dead/183072 "2010-02-08T01:13:00Z")

</div>

Hi, I’d like to implement a standalone application using JRuby 1.4 MySQL ActiveRecord Monkeybars A few years ago, I evaluated Monkeybars using videos, netbeans and the tutorial. Today, the webpages http://monkeyb…

---

## [Iron Ruby Windows Service](https://www.ruby-forum.com/t/iron-ruby-windows-service/180915)

<div class="topic-metadata">

**Author:** [@writeameer](https://www.ruby-forum.com/u/writeameer)\
**Replies:** 4\
**Last updated:** [February 8, 2010, 12:32am UTC](https://www.ruby-forum.com/t/iron-ruby-windows-service/180915 "2010-02-08T00:32:40Z")

</div>

Hello there, I am trying to find some pointers on how I might create a Windows Service running on IronRuby. Any pointers would be appreciated. Thank you. Ameer D…

---

## [Symbols and class veriable](https://www.ruby-forum.com/t/symbols-and-class-veriable/183071)

<div class="topic-metadata">

**Author:** [@jeromeqc](https://www.ruby-forum.com/u/jeromeqc)\
**Replies:** 4\
**Last updated:** [February 7, 2010, 11:23pm UTC](https://www.ruby-forum.com/t/symbols-and-class-veriable/183071 "2010-02-07T23:23:55Z")

</div>

Hello, Is the any connection between a symbol and a class variable. For example, if I declare the variable @red\_car\_speed is this aliased or connected by :red\_car\_speed. The section of code that is confuring me is: r…

---

## [DNote 1.1.2](https://www.ruby-forum.com/t/dnote-1-1-2/183076)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 5\
**Last updated:** [February 7, 2010, 9:08pm UTC](https://www.ruby-forum.com/t/dnote-1-1-2/183076 "2010-02-07T21:08:45Z")

</div>

DNote v1.1.2 http://proutils.github.com/dnote/ Developer’s take note! All those “TODO” and “FIXME” notes floating around your source code are rotting away. They are trapped and in certain need of your attention. But…

---

## [ANN: RubyInstaller - Release Candidate 2 - 1.8.6, 1.8.7 and 1.9.1 released](https://www.ruby-forum.com/t/ann-rubyinstaller-release-candidate-2-1-8-6-1-8-7-and-1-9-1-released/183082)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [February 7, 2010, 8:10pm UTC](https://www.ruby-forum.com/t/ann-rubyinstaller-release-candidate-2-1-8-6-1-8-7-and-1-9-1-released/183082 "2010-02-07T20:10:48Z")

</div>

I’m pleased to announce the second Release Candidate of the latest RubyInstaller packages. For those not already familiar with RubyInstaller, these versions continue the great work started with the original One-Click …

---

## [Where is become\_java!?](https://www.ruby-forum.com/t/where-is-become-java/183079)

<div class="topic-metadata">

**Author:** [@rogergue](https://www.ruby-forum.com/u/rogergue)\
**Replies:** 1\
**Last updated:** [February 7, 2010, 7:03pm UTC](https://www.ruby-forum.com/t/where-is-become-java/183079 "2010-02-07T19:03:30Z")

</div>

What is the status of the become\_java! method ? Regards Roger

---

## [Problems with 'require' in embedded ruby](https://www.ruby-forum.com/t/problems-with-require-in-embedded-ruby/166838)

<div class="topic-metadata">

**Author:** [@sjames](https://www.ruby-forum.com/u/sjames)\
**Replies:** 2\
**Last updated:** [February 7, 2010, 4:53pm UTC](https://www.ruby-forum.com/t/problems-with-require-in-embedded-ruby/166838 "2010-02-07T16:53:10Z")

</div>

I’m tinkering with my first C++ app with an embedded Ruby interpreter. I’m having trouble with pretty much any usage of ‘require’ that involves a file not in the same folder as the executable. If I use rb\_require, it …

---

## [Issue during multiple calls to C embedded Ruby with dlopen](https://www.ruby-forum.com/t/issue-during-multiple-calls-to-c-embedded-ruby-with-dlopen/183074)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 0\
**Last updated:** [February 7, 2010, 3:40pm UTC](https://www.ruby-forum.com/t/issue-during-multiple-calls-to-c-embedded-ruby-with-dlopen/183074 "2010-02-07T15:40:20Z")

</div>

Hi, I try to embed a Ruby interpreter into an application through a shared library. This application can call more than one time Ruby interpreter. In the attached testcase, first call works as expected but next calls …

---

## [Running rake test from jruby-complete.jar?](https://www.ruby-forum.com/t/running-rake-test-from-jruby-complete-jar/182689)

<div class="topic-metadata">

**Author:** [@homerlex](https://www.ruby-forum.com/u/homerlex)\
**Replies:** 7\
**Last updated:** [February 7, 2010, 1:31pm UTC](https://www.ruby-forum.com/t/running-rake-test-from-jruby-complete-jar/182689 "2010-02-07T13:31:05Z")

</div>

Is anyone running rake test using jruby-complete? Running with jruby install works fine like this: c:\\jruby\\jruby-1.4.0\\bin\\jruby -S rake test However, running with jruby-complete like this: java -jar c:\\projects\\His…

---

## [Ruby Libraries ==\> IronRuby](https://www.ruby-forum.com/t/ruby-libraries-ironruby/180337)

<div class="topic-metadata">

**Author:** [@ryan](https://www.ruby-forum.com/u/ryan)\
**Replies:** 3\
**Last updated:** [February 7, 2010, 10:26am UTC](https://www.ruby-forum.com/t/ruby-libraries-ironruby/180337 "2010-02-07T10:26:45Z")

</div>

Tomas’s message below seems to reflect what I’ve been thinking lately. Does anyone else think that in many cases porting C libraries to Ruby or even reusing ports from the Rubinius project would be beneficial to getti…

---

## [Mechanize 1.0.0 Released](https://www.ruby-forum.com/t/mechanize-1-0-0-released/183058)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 1\
**Last updated:** [February 7, 2010, 10:17am UTC](https://www.ruby-forum.com/t/mechanize-1-0-0-released/183058 "2010-02-07T10:17:59Z")

</div>

mechanize version 1.0.0 has been released! http://mechanize.rubyforge.org http://github.com/tenderlove/mechanize/tree/master The Mechanize library is used for automating interaction with websites. Mechanize automatic…

---

## [Open Source Subversion Hosting](https://www.ruby-forum.com/t/open-source-subversion-hosting/182334)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 20\
**Last updated:** [February 7, 2010, 6:39am UTC](https://www.ruby-forum.com/t/open-source-subversion-hosting/182334 "2010-02-07T06:39:09Z")

</div>

Looking for Rubyist’s recommendations for free open-source Subversion hosting now that Rubyforge is being (albeit ever so slowly) phased out. I host most of my work on Github and I am very happy with it (even though …

---

## [\[ANN\] TMail 1.2.7](https://www.ruby-forum.com/t/ann-tmail-1-2-7/183056)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 0\
**Last updated:** [February 7, 2010, 4:35am UTC](https://www.ruby-forum.com/t/ann-tmail-1-2-7/183056 "2010-02-07T04:35:42Z")

</div>

Hello all, Even though I am going full speed ahead with the Mail gem, TMail still has a large installed base and I am still accepting patches / updates / fixes at GitHub - mikel/tmail: TMail is a Ruby Email Handler. T…

---

## [wxFormBuilder for wxRuby question](https://www.ruby-forum.com/t/wxformbuilder-for-wxruby-question/183030)

<div class="topic-metadata">

**Author:** [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Replies:** 2\
**Last updated:** [February 7, 2010, 1:45am UTC](https://www.ruby-forum.com/t/wxformbuilder-for-wxruby-question/183030 "2010-02-07T01:45:33Z")

</div>

Hi all, I want to design a GUI with wxRuby, but I don’t want to define it in my code. One of the things I’ve heard about wxRuby is the ability to design interfaces using GUI designers and a special XML format known a…

---

## [Inheritance related problem](https://www.ruby-forum.com/t/inheritance-related-problem/182624)

<div class="topic-metadata">

**Author:** [@sentinel](https://www.ruby-forum.com/u/sentinel)\
**Replies:** 19\
**Last updated:** [February 7, 2010, 12:24am UTC](https://www.ruby-forum.com/t/inheritance-related-problem/182624 "2010-02-07T00:24:36Z")

</div>

Note: this is not a ruby bug. its a general query. Perhaps best explained with sample code. #!/usr/bin/env ruby -w class Parent def printa arg puts "inside parent printa #{arg} " printb arg end def printb arg pu…

---

## [Running a Ruby application with jruby-complete](https://www.ruby-forum.com/t/running-a-ruby-application-with-jruby-complete/182688)

<div class="topic-metadata">

**Author:** [@Matt\_Fletcher](https://www.ruby-forum.com/u/Matt_Fletcher)\
**Replies:** 2\
**Last updated:** [February 7, 2010, 12:06am UTC](https://www.ruby-forum.com/t/running-a-ruby-application-with-jruby-complete/182688 "2010-02-07T00:06:31Z")

</div>

I just published a short article about running Ruby applications and scripts using jruby-complete. Here’s a url: Building up the java -jar command can be non-obvious depending on what you’re doing; the article shar…

---

## [HOT JOBS! 6 openings for Open So urce Technical Developers - Bost on, MA & Austin, TX. $750 referr a](https://www.ruby-forum.com/t/hot-jobs-6-openings-for-open-so-urce-technical-developers-bost-on-ma-austin-tx-750-referr-a/182874)

<div class="topic-metadata">

**Author:** [@Marsh\_Sutherland](https://www.ruby-forum.com/u/Marsh_Sutherland)\
**Replies:** 1\
**Last updated:** [February 6, 2010, 8:49pm UTC](https://www.ruby-forum.com/t/hot-jobs-6-openings-for-open-so-urce-technical-developers-bost-on-ma-austin-tx-750-referr-a/182874 "2010-02-06T20:49:14Z")

</div>

Hi Rubyists and Railsians, One of my recruiting clients is in desperate need to hire 6 back-end Technical Developers. This are fairly junior positions and the salaries are $60K to $80K depending on experience and dem…

---

## [FYI: ir -S gem doesn't work on \*nix](https://www.ruby-forum.com/t/fyi-ir-s-gem-doesnt-work-on-nix/183041)

<div class="topic-metadata">

**Author:** [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Replies:** 3\
**Last updated:** [February 6, 2010, 8:46pm UTC](https://www.ruby-forum.com/t/fyi-ir-s-gem-doesnt-work-on-nix/183041 "2010-02-06T20:46:53Z")

</div>

http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3898 it looks in the current directory for the script Â» ir -S gem list unknown: Could not find file “/Users/ivan/Dropbox/CloudSlide/Presentations/fosdem/sam…

---

## [How to use setTransferable with JRuby?](https://www.ruby-forum.com/t/how-to-use-settransferable-with-jruby/183037)

<div class="topic-metadata">

**Author:** [@rogergue](https://www.ruby-forum.com/u/rogergue)\
**Replies:** 0\
**Last updated:** [February 6, 2010, 6:43pm UTC](https://www.ruby-forum.com/t/how-to-use-settransferable-with-jruby/183037 "2010-02-06T18:43:57Z")

</div>

I use the following code: table.set\_drag\_enabled true # table is a JXTable descendant table.setTransferHandler DragAndDropTransferable.new(“item”) class DragAndDropTransferable \< TransferHandler end class JXTableE…

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

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