# Ruby

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

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

---

## [Ruby IDE](https://www.ruby-forum.com/t/ruby-ide/145339)

<div class="topic-metadata">

**Author:** [@Mayuresh\_K](https://www.ruby-forum.com/u/Mayuresh_K)\
**Replies:** 51\
**Last updated:** [August 14, 2008, 12:26am UTC](https://www.ruby-forum.com/t/ruby-ide/145339 "2008-08-14T00:26:34Z")

</div>

Hello, Is there a good IDE for Ruby? At the moment am using “vi”, plan to migrate to TextEditor under GNOME I tried downloading ruby-ide from http://www.ruby-ide.com/ But it kept making me go round and round to get a…

---

## [Oracle Application Server java.lang.SecurityException](https://www.ruby-forum.com/t/oracle-application-server-java-lang-securityexception/145736)

<div class="topic-metadata">

**Author:** [@joshua\_d](https://www.ruby-forum.com/u/joshua_d)\
**Replies:** 4\
**Last updated:** [August 14, 2008, 12:21am UTC](https://www.ruby-forum.com/t/oracle-application-server-java-lang-securityexception/145736 "2008-08-14T00:21:18Z")

</div>

All- I’m seeing this strange error (included below) on deployment that I’m not familiar with which occurs on application deployment (which is successful inasmuch as it can be) or on any subsequent pagefetch. I’m at …

---

## [Calling Ruby ".class" from Java](https://www.ruby-forum.com/t/calling-ruby-class-from-java/145761)

<div class="topic-metadata">

**Author:** [@leandrodoze](https://www.ruby-forum.com/u/leandrodoze)\
**Replies:** 4\
**Last updated:** [August 13, 2008, 11:49pm UTC](https://www.ruby-forum.com/t/calling-ruby-class-from-java/145761 "2008-08-13T23:49:41Z")

</div>

Hello! I have a compiled (with jrubyc) Ruby class in classpath of my Java application (on Eclipse), and I can see this class on my Java code. \*\*\* RUBY CLASS \*\*\* class Cachorro def diga\_ola puts ‘Ola!’ end end \*\*…

---

## [Redefine "method" method](https://www.ruby-forum.com/t/redefine-method-method/145785)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 6\
**Last updated:** [August 13, 2008, 11:42pm UTC](https://www.ruby-forum.com/t/redefine-method-method/145785 "2008-08-13T23:42:39Z")

</div>

Hi, I’d like to have a method called “method” in some classes, but since “method” is a Ruby method present in any class I would like if it could originate any problem.

---

## [Ruby projects code organization](https://www.ruby-forum.com/t/ruby-projects-code-organization/145754)

<div class="topic-metadata">

**Author:** [@Simon\_COURTOIS](https://www.ruby-forum.com/u/Simon_COURTOIS)\
**Replies:** 4\
**Last updated:** [August 13, 2008, 11:37pm UTC](https://www.ruby-forum.com/t/ruby-projects-code-organization/145754 "2008-08-13T23:37:57Z")

</div>

Hi all, I’m finishing the first version of a project. I want to prepare it to distribution. It seems there is no standard about ruby projects code organization. Is there any ? I looked the Puppet’s project organizat…

---

## [Changing an instance variable](https://www.ruby-forum.com/t/changing-an-instance-variable/145779)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 5\
**Last updated:** [August 13, 2008, 10:55pm UTC](https://www.ruby-forum.com/t/changing-an-instance-variable/145779 "2008-08-13T22:55:48Z")

</div>

if I have these methods in a class: def initialize(x, y) @x, @y = x, y end def foo @z = @x + @y end def bar foo @z \* 2 end What if I want to redefine @x inside method “foo” but only in there? is there a simpl…

---

## [Ruby Scripts From Java (related to my previous post)](https://www.ruby-forum.com/t/ruby-scripts-from-java-related-to-my-previous-post/145787)

<div class="topic-metadata">

**Author:** [@johnpetterson](https://www.ruby-forum.com/u/johnpetterson)\
**Replies:** 0\
**Last updated:** [August 13, 2008, 10:33pm UTC](https://www.ruby-forum.com/t/ruby-scripts-from-java-related-to-my-previous-post/145787 "2008-08-13T22:33:37Z")

</div>

Referring to my (misguided) post regarding making $\_ available in JRuby in a BSF environment… This is what I need to do - any pointers on best practice appreciated. So I have a very simple Java (Swing) app which conta…

---

## [Subclassing, using an alternativ constructor](https://www.ruby-forum.com/t/subclassing-using-an-alternativ-constructor/145737)

<div class="topic-metadata">

**Author:** [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Replies:** 2\
**Last updated:** [August 13, 2008, 10:03pm UTC](https://www.ruby-forum.com/t/subclassing-using-an-alternativ-constructor/145737 "2008-08-13T22:03:38Z")

</div>

Hi list, I want to create a subclass of GConf::Client, but using GConf::Client.new is deprecated, GConf::Client.default should be used instead. If I call super in ‘initialize’ it of course calls the ‘new’ constructo…

---

## [What's the easiest way to check if param\[:x\]\[:y\] exists?](https://www.ruby-forum.com/t/whats-the-easiest-way-to-check-if-param-x-y-exists/145664)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 8\
**Last updated:** [August 13, 2008, 9:35pm UTC](https://www.ruby-forum.com/t/whats-the-easiest-way-to-check-if-param-x-y-exists/145664 "2008-08-13T21:35:30Z")

</div>

Hi all In PHP I can simply check whether $param\[‘x’\]\[‘y’\] exists regardless whether $param\[‘x’\] exists or not. In Rails I get a NoMethodError when using if param\[:x\]\[:y\] … end when param\[:x\] is nil. So I always ha…

---

## [Statemachine gem and unit testing](https://www.ruby-forum.com/t/statemachine-gem-and-unit-testing/145614)

<div class="topic-metadata">

**Author:** [@cremes](https://www.ruby-forum.com/u/cremes)\
**Replies:** 3\
**Last updated:** [August 13, 2008, 9:23pm UTC](https://www.ruby-forum.com/t/statemachine-gem-and-unit-testing/145614 "2008-08-13T21:23:11Z")

</div>

I’ve been using the statemachine gem \[1\] to build out some finite state machines for some work I am doing. I generally use rspec for most of my spec driven development, but I confess to having a bit of trouble wrappin…

---

## [Refresh Machine](https://www.ruby-forum.com/t/refresh-machine/226022)

<div class="topic-metadata">

**Author:** [@Pablo\_Lorenzzoni](https://www.ruby-forum.com/u/Pablo_Lorenzzoni)\
**Replies:** 1\
**Last updated:** [August 13, 2008, 9:07pm UTC](https://www.ruby-forum.com/t/refresh-machine/226022 "2008-08-13T21:07:12Z")

</div>

Hello, Recently I had to deal with external data sources that had to be refresh every now and then. Instead of using an infinite loop inside a thread for every object, I used Queue to create a “Refresh Machine”. Belo…

---

## [Array in ruby](https://www.ruby-forum.com/t/array-in-ruby/145765)

<div class="topic-metadata">

**Author:** [@leonard2](https://www.ruby-forum.com/u/leonard2)\
**Replies:** 2\
**Last updated:** [August 13, 2008, 8:21pm UTC](https://www.ruby-forum.com/t/array-in-ruby/145765 "2008-08-13T20:21:37Z")

</div>

hello list I have this array, in irb I write @mercados it puts this \[\[#\<Mercado id: 1, nombre: “Ibex 35”, descripcion: “”, simbolo: “^IBEX”, created\_at: “2008-08-13 10:22:42”, updated\_at: “2008-08-13 10:22:42”\>\], \[#\<…

---

## [Windows Mechanize error?](https://www.ruby-forum.com/t/windows-mechanize-error/145766)

<div class="topic-metadata">

**Author:** [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Replies:** 0\
**Last updated:** [August 13, 2008, 8:15pm UTC](https://www.ruby-forum.com/t/windows-mechanize-error/145766 "2008-08-13T20:15:27Z")

</div>

I am writing a web scarping tool using mechanize. When I’m on my PC, it hangs on a form submission that is on a HTTPS:// page. When I’m on my mac, it goes through, it just doesn’t pass the form validation. Are there …

---

## [Code Review: rubyclrinterop01](https://www.ruby-forum.com/t/code-review-rubyclrinterop01/145760)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 1\
**Last updated:** [August 13, 2008, 8:11pm UTC](https://www.ruby-forum.com/t/code-review-rubyclrinterop01/145760 "2008-08-13T20:11:38Z")

</div>

tfpt review “/shelveset:rubyclrinterop01;REDMOND\\curth” Ruby changes: Initial changes for improved Ruby CLR interop: Defer creation of underlying CLR type until later to allow extending with CLR interfaces Prevent g…

---

## [Invalid char \`\\270' ('ï¿½') in expression](https://www.ruby-forum.com/t/invalid-char-270-i-in-expression/145753)

<div class="topic-metadata">

**Author:** [@sharkie](https://www.ruby-forum.com/u/sharkie)\
**Replies:** 0\
**Last updated:** [August 13, 2008, 5:54pm UTC](https://www.ruby-forum.com/t/invalid-char-270-i-in-expression/145753 "2008-08-13T17:54:11Z")

</div>

I am getting the very strange error below off my code that I do not get when I use regular ruby (MRI). I am on Leopard and using Java 1.5. /usr/local/jruby-1.1.3/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active\_rec…

---

## [IronRuby binary disribution](https://www.ruby-forum.com/t/ironruby-binary-disribution/145747)

<div class="topic-metadata">

**Author:** [@markbates](https://www.ruby-forum.com/u/markbates)\
**Replies:** 1\
**Last updated:** [August 13, 2008, 4:43pm UTC](https://www.ruby-forum.com/t/ironruby-binary-disribution/145747 "2008-08-13T16:43:26Z")

</div>

Does the IronRuby binary distribution have any dependencies on the MRI distribution? If I require a standard Ruby library from IronRuby, I get an error that there is â€œno such file to loadâ€. I unzipped the binary …

---

## [Regular expression: anything except](https://www.ruby-forum.com/t/regular-expression-anything-except/145745)

<div class="topic-metadata">

**Author:** [@gunbol](https://www.ruby-forum.com/u/gunbol)\
**Replies:** 5\
**Last updated:** [August 13, 2008, 4:41pm UTC](https://www.ruby-forum.com/t/regular-expression-anything-except/145745 "2008-08-13T16:41:05Z")

</div>

Hello, I am trying to create a regular expression with the following rule: my text is: blabla I want to replace \<TEXT\*\> with something “”.gsub(/the magic regular expression/,“replacement”) ==\> replacementblabla bu…

---

## [What do you think of this code?](https://www.ruby-forum.com/t/what-do-you-think-of-this-code/145647)

<div class="topic-metadata">

**Author:** [@ben](https://www.ruby-forum.com/u/ben)\
**Replies:** 15\
**Last updated:** [August 13, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/what-do-you-think-of-this-code/145647 "2008-08-13T16:24:37Z")

</div>

hi In order to learn ruby I’d like to implement some simple unix tools in ruby. I thought I beginn with ‘ls’: 1 #!/usr/bin/env ruby 2 # 3 # The Unix tool 'ls' implemented in ruby 4 # 5 class Ls 6 a…

---

## [\[Bug #429\] make failed on powerpc-apple-darwin9.4.0](https://www.ruby-forum.com/t/bug-429-make-failed-on-powerpc-apple-darwin9-4-0/145707)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 1\
**Last updated:** [August 13, 2008, 4:17pm UTC](https://www.ruby-forum.com/t/bug-429-make-failed-on-powerpc-apple-darwin9-4-0/145707 "2008-08-13T16:17:32Z")

</div>

Bug #429: make failed on powerpc-apple-darwin9.4.0 http://redmine.ruby-lang.org/issues/show/429 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Immediate e$BC4Ev\<Te(B: Nobuyoshi N. gcc -Wall -…

---

## [Ruby 1.9, YAML & encodings](https://www.ruby-forum.com/t/ruby-1-9-yaml-encodings/145735)

<div class="topic-metadata">

**Author:** [@FSSenault](https://www.ruby-forum.com/u/FSSenault)\
**Replies:** 0\
**Last updated:** [August 13, 2008, 1:45pm UTC](https://www.ruby-forum.com/t/ruby-1-9-yaml-encodings/145735 "2008-08-13T13:45:34Z")

</div>

Hello all. I’m trying to migrate a project to ruby 1.9. I have a lot of source, ressource, and data files, all encoded in ISO8859-1(5), so I’m trying to preserve this. The trouble is that YAML seems to load every str…

---

## [Information on Hosting Ruby.Console?](https://www.ruby-forum.com/t/information-on-hosting-ruby-console/145453)

<div class="topic-metadata">

**Author:** [@jcain](https://www.ruby-forum.com/u/jcain)\
**Replies:** 5\
**Last updated:** [August 13, 2008, 1:39pm UTC](https://www.ruby-forum.com/t/information-on-hosting-ruby-console/145453 "2008-08-13T13:39:42Z")

</div>

I’m working on a project where I would like to host the IronRuby console, and I’m getting some stack overflow exceptions. I’ve met the end of my own knowledge, so I’m wondering if there is more information available …

---

## [Webgen 0.5.2 released](https://www.ruby-forum.com/t/webgen-0-5-2-released/145731)

<div class="topic-metadata">

**Author:** [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Replies:** 0\
**Last updated:** [August 13, 2008, 12:44pm UTC](https://www.ruby-forum.com/t/webgen-0-5-2-released/145731 "2008-08-13T12:44:03Z")

</div>

Hey everybody! webgen 0.5.2 has just been released! If you don’t know what webgen is, read the “What’s webgen?” section down below. This release brings some updates to the core as well as a browser based GUI, some bu…

---

## [Regular expresson isue](https://www.ruby-forum.com/t/regular-expresson-isue/145702)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 4\
**Last updated:** [August 13, 2008, 11:43am UTC](https://www.ruby-forum.com/t/regular-expresson-isue/145702 "2008-08-13T11:43:40Z")

</div>

I have following regular expression to parse time. (\[0-9\]|0\[0-9\]|1\[012\]):(\[0-9\]|0\[0-9\]|\[1-5\]\[0-9\])\\s\*(am|pm) I don’t want this regext to match 13:45 PM because the the numerical value before the colon should be limite…

---

## [\[Bug #409\] Can't modify frozen ... $B$N7?(B](https://www.ruby-forum.com/t/bug-409-cant-modify-frozen-b-n7-b/145722)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 0\
**Last updated:** [August 13, 2008, 10:59am UTC](https://www.ruby-forum.com/t/bug-409-cant-modify-frozen-b-n7-b/145722 "2008-08-13T10:59:03Z")

</div>

e$B%A%1%C%He(B #409 e$B$,99?7$5$l$^$7$?!#e(B (by Yukihiro M.) frozene$B$H$$$&!V\>uBV!W$O$O$?$7$F7?e(B(type)e$B$J$N$+G:$s$@$"$2$/$NJQ99$J$N$G$9$,!"JQ99$7$J$$J}$,$h$$$G$7$g$&$+!#e(B http://redmine.ruby-lang.org/issues/sh…

---

## [\[Bug #432\] func (x,y)](https://www.ruby-forum.com/t/bug-432-func-x-y/145720)

<div class="topic-metadata">

**Author:** [@Shyouhei\_U](https://www.ruby-forum.com/u/Shyouhei_U)\
**Replies:** 1\
**Last updated:** [August 13, 2008, 10:50am UTC](https://www.ruby-forum.com/t/bug-432-func-x-y/145720 "2008-08-13T10:50:16Z")

</div>

Bug #432: func (x,y) http://redmine.ruby-lang.org/issues/show/432 e$B5/I\<\<Te(B: Shyouhei U. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B0J2\<$N%3!\<%I$,e(Bparse errore$B$G$9!#e(B % ~/target/trunk/bin/ruby -ve ‘p (…

---

## [RSpec output contains ridiculously excessive line returns](https://www.ruby-forum.com/t/rspec-output-contains-ridiculously-excessive-line-returns/145721)

<div class="topic-metadata">

**Author:** [@elliottcable](https://www.ruby-forum.com/u/elliottcable)\
**Replies:** 0\
**Last updated:** [August 13, 2008, 10:42am UTC](https://www.ruby-forum.com/t/rspec-output-contains-ridiculously-excessive-line-returns/145721 "2008-08-13T10:42:38Z")

</div>

I don’t know where else to send this, or I wouldn’t bother the general Ruby list with it. RCov is outputting really weird markup on my computer: http://pastie.org/251121 Snippet: C0 code coverage information …

---

## [$SAFE$B$N:#8e(B](https://www.ruby-forum.com/t/safe-b-n-8e-b/141766)

<div class="topic-metadata">

**Author:** [@Urabe\_S](https://www.ruby-forum.com/u/Urabe_S)\
**Replies:** 23\
**Last updated:** [August 13, 2008, 9:48am UTC](https://www.ruby-forum.com/t/safe-b-n-8e-b/141766 "2008-08-13T09:48:45Z")

</div>

e$B!A$3$l$^$G$N$"$i$9$8!Ae(B \[ruby-dev:35241\]e$B$N8e!";38}$5$s$K$O\<B:\]$KJ#?t$N%;!\<%U%l%Y%k4XO"$NLdBjE@$re(B e$B;XE&$7$F$$$?$@$-!"$$$/$D$+$O=$@5$5$l$^$7$?!#$"$j$,$H$&$4$6$$$^$9!#e(B e$B$7$+$7$=$l$i$N=$@5$r5DO@$9$k$&$A$…

---

## [\[Bug:1.9\] Time.now \<=\> SimpleDelegator.new(Time.now)](https://www.ruby-forum.com/t/bug-1-9-time-now-simpledelegator-new-time-now/139931)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 2\
**Last updated:** [August 13, 2008, 9:07am UTC](https://www.ruby-forum.com/t/bug-1-9-time-now-simpledelegator-new-time-now/139931 "2008-08-13T09:07:46Z")

</div>

Time.now \<=\> SimpleDelegator.new(Time.now) e$B$,e(B nil e$B$K$J$k$N$Oe(B SimpleDelegator.new(Time.now) \<=\> Time.now e$B$,$=$&$J$i$J$$$Ne(B e$B$H0c$C$F$h$m$7$/$J$$$s$8$c$J$$$G$7$g$&$+!#e(B % ./ruby -rdelegate -ve ’ t …

---

## [$B@N$+$i(B obsolete $B$J$b$N$K$D$$$F(B](https://www.ruby-forum.com/t/b-n-i-b-obsolete-b-j-b-n-k-d-f-b/145711)

<div class="topic-metadata">

**Author:** [@okkez](https://www.ruby-forum.com/u/okkez)\
**Replies:** 0\
**Last updated:** [August 13, 2008, 7:21am UTC](https://www.ruby-forum.com/t/b-n-i-b-obsolete-b-j-b-n-k-d-f-b/145711 "2008-08-13T07:21:48Z")

</div>

okkez ã§ã™ã€‚ æ˜”ã‹ã‚‰ obsolete ãªã‚‚ã®ã«ã¤ã„ã¦ã¾ã¨ã‚ã¦ã¿ã¾ã—ãŸã€‚ grep ã—ã¦ã„ã¤ã‹ã‚‰ obsolete ãªã®ã‹èª¿ã¹ãŸã ã‘ã§ã™ãŒã€‚ã€‚ã€‚ æ·»ä»˜ã®è³‡æ–™ã«ã¯ãƒªãƒ“ã‚¸ãƒ§ãƒ³ã§æ›¸ã„ã¦ã„ã‚‹ã®ã…

---

## [:through relationship](https://www.ruby-forum.com/t/through-relationship/145626)

<div class="topic-metadata">

**Author:** [@ganeshk](https://www.ruby-forum.com/u/ganeshk)\
**Replies:** 3\
**Last updated:** [August 13, 2008, 6:20am UTC](https://www.ruby-forum.com/t/through-relationship/145626 "2008-08-13T06:20:23Z")

</div>

Hi, Is it possible to use :through in has\_and\_belongs \_to\_many relationship

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

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