# Ruby

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

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

---

## [Where nested methods go?](https://www.ruby-forum.com/t/where-nested-methods-go/115301)

<div class="topic-metadata">

**Author:** [@nibble70](https://www.ruby-forum.com/u/nibble70)\
**Replies:** 2\
**Last updated:** [September 23, 2007, 2:54pm UTC](https://www.ruby-forum.com/t/where-nested-methods-go/115301 "2007-09-23T14:54:46Z")

</div>

Hi, I’m very new to ruby, so please forgive me if my question seems somehow silly. I typed the following code: class Myclass def m1 def m2 puts “m2” end end end a = Myclass.new a.m1 a.m2 b = Myclass.new b.…

---

## [Monkeybars 0.4 - GUI apps for Ruby](https://www.ruby-forum.com/t/monkeybars-0-4-gui-apps-for-ruby/115060)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 1\
**Last updated:** [September 23, 2007, 12:03pm UTC](https://www.ruby-forum.com/t/monkeybars-0-4-gui-apps-for-ruby/115060 "2007-09-23T12:03:07Z")

</div>

Monkeybars 0.4 is out. http://monkeybars.rubyforge.org This is the first real public release of the library but it is relatively stable. Monkeybars is a library for building Swing applications via JRuby with an emp…

---

## [Ruby 1.8.5-p113 released](https://www.ruby-forum.com/t/ruby-1-8-5-p113-released/115295)

<div class="topic-metadata">

**Author:** [@Urabe\_S](https://www.ruby-forum.com/u/Urabe_S)\
**Replies:** 0\
**Last updated:** [September 23, 2007, 11:15am UTC](https://www.ruby-forum.com/t/ruby-1-8-5-p113-released/115295 "2007-09-23T11:15:04Z")

</div>

Hi all, I am pleased to announce that a new version for Ruby 1.8.5 has been released. This release is the counterpart for 1.8.6-p110. Backports from newer releases are included. The source code tarballs are availab…

---

## [foxGUIB\_win32 crashes without any indication why](https://www.ruby-forum.com/t/foxguib-win32-crashes-without-any-indication-why/112523)

<div class="topic-metadata">

**Author:** [@tomrobinson](https://www.ruby-forum.com/u/tomrobinson)\
**Replies:** 1\
**Last updated:** [September 23, 2007, 11:08am UTC](https://www.ruby-forum.com/t/foxguib-win32-crashes-without-any-indication-why/112523 "2007-09-23T11:08:03Z")

</div>

I’ve started to use foxGUIb\_win32. I am quite impressed with the program. However, I find that after I add a number of widgets into the MainWindow, the ruby program will run properly. However if I save the \*.rbin f…

---

## [RSTRING(value)-\>ptr == NULL?](https://www.ruby-forum.com/t/rstring-value-ptr-null/114316)

<div class="topic-metadata">

**Author:** [@Tietew](https://www.ruby-forum.com/u/Tietew)\
**Replies:** 6\
**Last updated:** [September 23, 2007, 10:26am UTC](https://www.ruby-forum.com/t/rstring-value-ptr-null/114316 "2007-09-23T10:26:58Z")

</div>

Tietew e$B$G$9!#e(B RString::ptr e$B$,e(B NULL e$B$Je(B String e$B$r%i%$%V%i%j$KEO$7$?:\]$Ke(B SEGV e$B$re(B e$B5/$3$9$3$H$,$"$j$^$9!#e(B e$B6qBNE\*$K$ONc$($Pe(B require ‘rubygems’ require ‘idn’ IDN::Idna.toASCII(" …

---

## [Using "if 3 in list\_foo" for Python for Ruby](https://www.ruby-forum.com/t/using-if-3-in-list-foo-for-python-for-ruby/115291)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 2\
**Last updated:** [September 23, 2007, 9:48am UTC](https://www.ruby-forum.com/t/using-if-3-in-list-foo-for-python-for-ruby/115291 "2007-09-23T09:48:17Z")

</div>

There is no such thing as if 3 in \[3, 2, 1\] construct in Ruby? so the common way in Ruby is if list1.include?(3) or if list1.index(3) is that right? is there an idiom in Ruby to do something like if 3.in(\[3,2,1\]…

---

## [13h mode?](https://www.ruby-forum.com/t/13h-mode/115255)

<div class="topic-metadata">

**Author:** [@p0l4r](https://www.ruby-forum.com/u/p0l4r)\
**Replies:** 5\
**Last updated:** [September 23, 2007, 9:25am UTC](https://www.ruby-forum.com/t/13h-mode/115255 "2007-09-23T09:25:54Z")

</div>

Hi i have a question is it possible to run 13h mode using ruby+asm ?

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/115288)

<div class="topic-metadata">

**Author:** [@nilez](https://www.ruby-forum.com/u/nilez)\
**Replies:** 0\
**Last updated:** [September 23, 2007, 6:51am UTC](https://www.ruby-forum.com/t/unsubscribe/115288 "2007-09-23T06:51:45Z")

</div>

unsubscribe

---

## [Re: Shirt Reader (#140)](https://www.ruby-forum.com/t/re-shirt-reader-140/115279)

<div class="topic-metadata">

**Author:** [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Replies:** 1\
**Last updated:** [September 23, 2007, 3:53am UTC](https://www.ruby-forum.com/t/re-shirt-reader-140/115279 "2007-09-23T03:53:31Z")

</div>

Do not for get the ultimate pictographic message (not sure what these are called, but they’re definitely not “T-shirt phrases.” - I’ve seen them before plenty of times, but never on T-shirts.) http://gabbyhooch.tripod…

---

## [Http-access/2.0.8](https://www.ruby-forum.com/t/http-access-2-0-8/108224)

<div class="topic-metadata">

**Author:** [@NAKAMURAS\_Hiroshi](https://www.ruby-forum.com/u/NAKAMURAS_Hiroshi)\
**Replies:** 3\
**Last updated:** [September 23, 2007, 1:33am UTC](https://www.ruby-forum.com/t/http-access-2-0-8/108224 "2007-09-23T01:33:24Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, http-access/2.0.8 is out. ‘http-access2’ gives something like the functionality of libwww-perl (LWP) in Ruby. Features; methods like GET/HEAD/POST via HTTP/1…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/115264)

<div class="topic-metadata">

**Author:** [@daxlnc](https://www.ruby-forum.com/u/daxlnc)\
**Replies:** 0\
**Last updated:** [September 22, 2007, 10:33pm UTC](https://www.ruby-forum.com/t/unsubscribe/115264 "2007-09-22T22:33:11Z")

</div>

unsubscribe Angad Chadha

---

## [Idiomatic Ruby for Array#extract / Range#length?](https://www.ruby-forum.com/t/idiomatic-ruby-for-array-extract-range-length/115087)

<div class="topic-metadata">

**Author:** [@Sammy\_L](https://www.ruby-forum.com/u/Sammy_L)\
**Replies:** 24\
**Last updated:** [September 22, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/idiomatic-ruby-for-array-extract-range-length/115087 "2007-09-22T20:06:53Z")

</div>

During the monthly meeting of our code dojo, we were surprised by a couple of things in Ruby, so I had a couple of questions I’d like to ask the community: Would it make sense to talk about a Range having a length, …

---

## [Rb\_clear\_cache\_by\_class](https://www.ruby-forum.com/t/rb-clear-cache-by-class/115260)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [September 22, 2007, 7:11pm UTC](https://www.ruby-forum.com/t/rb-clear-cache-by-class/115260 "2007-09-22T19:11:44Z")

</div>

e$B0J2\<$NI=L@$O@5$7$$$G$7$g$&$+e(B? e$B$D$^$j!“e(Brb\_clear\_cache\_by\_class e$B$K$\*$$$Fe(B ent-\>method e$B$,e(B 0 e$B$Ge(B e$B$J$$$H$-!”$=$l$Oe(B T\_NONE e$B$G$O$J$$$O$:$G$7$g$&$+!#e(B Index: eval\_method.ci — eval\_metho…

---

## [Playing Wav file in Ruby](https://www.ruby-forum.com/t/playing-wav-file-in-ruby/115239)

<div class="topic-metadata">

**Author:** [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Replies:** 5\
**Last updated:** [September 22, 2007, 6:26pm UTC](https://www.ruby-forum.com/t/playing-wav-file-in-ruby/115239 "2007-09-22T18:26:51Z")

</div>

Greetings, I’m interesting in writing a small ruby script that will play a wav file. I’m using ruby 1.8.2 (2004-12-25) \[powerpc-darwin8.0\] I haven’t found anything other than what seems to be a windows only solution…

---

## [Removing undefined method on 1.8](https://www.ruby-forum.com/t/removing-undefined-method-on-1-8/115257)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [September 22, 2007, 5:34pm UTC](https://www.ruby-forum.com/t/removing-undefined-method-on-1-8/115257 "2007-09-22T17:34:29Z")

</div>

1.8 e$B$Ge(B undef e$B$7$?$b$N$re(B remove\_method e$B$9$k$He(B NameError e$B$K$Je(B e$B$j!"$=$7$Fe(B undef e$BA0$N$h$&$K8F$Y$k$h$&$K$J$j$^$9!#e(B % ./ruby -ve ’ class C undef display begin remove\_method :display …

---

## [SEGV by removing undefined method](https://www.ruby-forum.com/t/segv-by-removing-undefined-method/115256)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [September 22, 2007, 5:29pm UTC](https://www.ruby-forum.com/t/segv-by-removing-undefined-method/115256 "2007-09-22T17:29:29Z")

</div>

e$B0J2\<$N$h$&$K$9$k$He(B SEGV e$B$7$^$9!#e(B % ./ruby -e ’ class C undef display remove\_method :display end ’ -e:4: – control frame ---------- c:0005 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC :remove\_method …

---

## [jEdit can run code like TextMate does?](https://www.ruby-forum.com/t/jedit-can-run-code-like-textmate-does/114858)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 8\
**Last updated:** [September 22, 2007, 4:11pm UTC](https://www.ruby-forum.com/t/jedit-can-run-code-like-textmate-does/114858 "2007-09-22T16:11:22Z")

</div>

I am using jEdit on windows for Ruby, and it seems to lack a function to run code by popping up a new window. (by pressing F5 like in IDLE for Python, or %-R for mac using TextMate). The result window on TextMate l…

---

## [Break loop by trapping INT](https://www.ruby-forum.com/t/break-loop-by-trapping-int/115227)

<div class="topic-metadata">

**Author:** [@Todd\_ASJacobs](https://www.ruby-forum.com/u/Todd_ASJacobs)\
**Replies:** 3\
**Last updated:** [September 22, 2007, 3:39pm UTC](https://www.ruby-forum.com/t/break-loop-by-trapping-int/115227 "2007-09-22T15:39:18Z")

</div>

I’m trying to break a loop whenever CTRL-C is pressed, and find that this doesn’t work: trap 'INT', proc {break}; count=0; while count \< 10; puts count += 1; sleep 1; end I’m guessing it’s because the loop is somehow …

---

## [Regex problem with gsub](https://www.ruby-forum.com/t/regex-problem-with-gsub/115243)

<div class="topic-metadata">

**Author:** [@Gilbert\_R](https://www.ruby-forum.com/u/Gilbert_R)\
**Replies:** 3\
**Last updated:** [September 22, 2007, 1:15pm UTC](https://www.ruby-forum.com/t/regex-problem-with-gsub/115243 "2007-09-22T13:15:57Z")

</div>

Hi, i have a dir like that and need the first part of the first filename = J:\\test\>dir /B 20070921\_0001.xml 20070921\_0002.xml 20070921\_0003.xml i tried with = str=File.basename(Dir\[“J:/test/\*.xml”\].sort\[0\]).gsub(…

---

## [Metadata 1.0](https://www.ruby-forum.com/t/metadata-1-0/115251)

<div class="topic-metadata">

**Author:** [@Ilmari\_H](https://www.ruby-forum.com/u/Ilmari_H)\
**Replies:** 0\
**Last updated:** [September 22, 2007, 1:13pm UTC](https://www.ruby-forum.com/t/metadata-1-0/115251 "2007-09-22T13:13:57Z")

</div>

tarball: http://dark.fhtr.org/repos/metadata/metadata-1.0.tar.gz gem: http://dark.fhtr.org/repos/metadata/metadata-1.0.gem git: http://dark.fhtr.org/repos/metadata Thanks Konrad M. for his patient testing and bug rep…

---

## [Thumbnailer 0.1](https://www.ruby-forum.com/t/thumbnailer-0-1/115249)

<div class="topic-metadata">

**Author:** [@Ilmari\_H](https://www.ruby-forum.com/u/Ilmari_H)\
**Replies:** 0\
**Last updated:** [September 22, 2007, 1:09pm UTC](https://www.ruby-forum.com/t/thumbnailer-0-1/115249 "2007-09-22T13:09:56Z")

</div>

tarball: http://dark.fhtr.org/repos/thumbnailer/thumbnailer-0.1.tar.gz git: http://dark.fhtr.org/repos/thumbnailer example thumbnails: http://dark.fhtr.org/repos/thumbnailer/example\_thumbnails/ Description This pack…

---

## [Gem install deprec -y](https://www.ruby-forum.com/t/gem-install-deprec-y/115244)

<div class="topic-metadata">

**Author:** [@stonebreaker](https://www.ruby-forum.com/u/stonebreaker)\
**Replies:** 1\
**Last updated:** [September 22, 2007, 12:35pm UTC](https://www.ruby-forum.com/t/gem-install-deprec-y/115244 "2007-09-22T12:35:32Z")

</div>

Hi, When trying to installing deprec through gem i got this error. ERROR: While executing gem … (Zlib::DataError) invalid stored block lengths I’m using Vista

---

## [How can I remove all the comments in my c program](https://www.ruby-forum.com/t/how-can-i-remove-all-the-comments-in-my-c-program/114973)

<div class="topic-metadata">

**Author:** [@vellingiri](https://www.ruby-forum.com/u/vellingiri)\
**Replies:** 24\
**Last updated:** [September 22, 2007, 11:30am UTC](https://www.ruby-forum.com/t/how-can-i-remove-all-the-comments-in-my-c-program/114973 "2007-09-22T11:30:48Z")

</div>

Dear Friends, using The Ruby how can I remove all the comments in my c program. For example I have mentioned c program ,that may be ruby program for your purpose you assume. I have tried to do using the regular…

---

## [Class variables](https://www.ruby-forum.com/t/class-variables/115234)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 1\
**Last updated:** [September 22, 2007, 5:11am UTC](https://www.ruby-forum.com/t/class-variables/115234 "2007-09-22T05:11:20Z")

</div>

I must have a fundamental misunderstanding of Ruby. I am hoping someone here can help. This is the essence of what I am doing. I am doing this inside Ruby On Rails so it may be that Rails is doing something I don’t …

---

## [Rb\_obj\_is\_kind\_of](https://www.ruby-forum.com/t/rb-obj-is-kind-of/115189)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 4\
**Last updated:** [September 22, 2007, 3:31am UTC](https://www.ruby-forum.com/t/rb-obj-is-kind-of/115189 "2007-09-22T03:31:14Z")

</div>

rb\_obj\_is\_kind\_of e$B$Ne(B TYPE(cl) e$B$G$9$,!"e(B\[ruby-dev:31805\] e$B$NNce(B e$B$G$OLdBj$,=P$J$/$J$C$?$b$N$N!"e(Btest/runner.rb e$B$G$O0MA3$H$7$Fe(B e$BH/@8$7$^$9!#e(B e$B:#EY$Oe(B T\_NONE e$B$N$h$&$G$9!#e(B % gdb r…

---

## [Ogre.rb 0.2 is now available!](https://www.ruby-forum.com/t/ogre-rb-0-2-is-now-available/115225)

<div class="topic-metadata">

**Author:** [@jruyle](https://www.ruby-forum.com/u/jruyle)\
**Replies:** 5\
**Last updated:** [September 22, 2007, 2:18am UTC](https://www.ruby-forum.com/t/ogre-rb-0-2-is-now-available/115225 "2007-09-22T02:18:08Z")

</div>

Ogre.rb 0.2 is now available! It is available in gem and tar format on its rubyforge page: http://rubyforge.org/projects/ogrerb Documentation is available in rdoc form at the website: http://ogrerb.rubyforge.org – …

---

## [Passing var to anoter script](https://www.ruby-forum.com/t/passing-var-to-anoter-script/115098)

<div class="topic-metadata">

**Author:** [@nicpon](https://www.ruby-forum.com/u/nicpon)\
**Replies:** 4\
**Last updated:** [September 22, 2007, 12:27am UTC](https://www.ruby-forum.com/t/passing-var-to-anoter-script/115098 "2007-09-22T00:27:00Z")

</div>

Hey, I’m working on script using Watir class where I want to pass variable of Watir class to another script and I’m getting an error saying "syntax of the command is invalid’, but when I pass any other variable it wor…

---

## [Ruby + mysql](https://www.ruby-forum.com/t/ruby-mysql/115168)

<div class="topic-metadata">

**Author:** [@curiosone](https://www.ruby-forum.com/u/curiosone)\
**Replies:** 5\
**Last updated:** [September 21, 2007, 9:10pm UTC](https://www.ruby-forum.com/t/ruby-mysql/115168 "2007-09-21T21:10:42Z")

</div>

Sono nelal melma con MySql Voglio inserire un valore in un campo di una maschera video e voglio cercare se questo valore esiste in una data colonna di una tabella qualsiasi: quindi “SELECT \* FROM tabella WHERE variab…

---

## [Re: Shirt Reader (#140)](https://www.ruby-forum.com/t/re-shirt-reader-140/115210)

<div class="topic-metadata">

**Author:** [@steve\_d](https://www.ruby-forum.com/u/steve_d)\
**Replies:** 3\
**Last updated:** [September 21, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/re-shirt-reader-140/115210 "2007-09-21T20:46:40Z")

</div>

How about we post our lists of t-shirt phrases and what word we expect to be in the possible matches list to help each other test our solutions. Here’s mine: expectations = { %w\[e scent shells\] =\> 'essentials', %…

---

## [Metadata 1.0-rc2](https://www.ruby-forum.com/t/metadata-1-0-rc2/114964)

<div class="topic-metadata">

**Author:** [@Ilmari\_H](https://www.ruby-forum.com/u/Ilmari_H)\
**Replies:** 13\
**Last updated:** [September 21, 2007, 6:48pm UTC](https://www.ruby-forum.com/t/metadata-1-0-rc2/114964 "2007-09-21T18:48:28Z")

</div>

Getting close to the 1.0 release of the metadata library. If there are no major problems with this release candidate, that is. tarball: http://dark.fhtr.org/repos/metadata/metadata-1.0-rc2.tar.gz git: http://dark.fhtr…

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

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