# Ruby

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

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

---

## [\[NOOB\] respond\_to? failing](https://www.ruby-forum.com/t/noob-respond-to-failing/192349)

<div class="topic-metadata">

**Author:** [@sentinel](https://www.ruby-forum.com/u/sentinel)\
**Replies:** 2\
**Last updated:** [July 29, 2010, 5:34am UTC](https://www.ruby-forum.com/t/noob-respond-to-failing/192349 "2010-07-29T05:34:23Z")

</div>

I’ve been checking respond\_to? before calling send() for ages but today its failing in a simple case. I define a method outside of a class or module. send() works but respond\_to? fails. You could define a method in ir…

---

## [\[Bug #3624\] racc $B$G%3%s%Q%$%k%(%i!\<(B](https://www.ruby-forum.com/t/bug-3624-racc-b-g-3-s-q-k-i-b/192365)

<div class="topic-metadata">

**Author:** [@Makoto\_K](https://www.ruby-forum.com/u/Makoto_K)\
**Replies:** 0\
**Last updated:** [July 29, 2010, 4:19am UTC](https://www.ruby-forum.com/t/bug-3624-racc-b-g-3-s-q-k-i-b/192365 "2010-07-29T04:19:02Z")

</div>

e$B%A%1%C%He(B #3624 e$B$,99?7$5$l$^$7$?!#e(B (by Makoto K.) e$B$9$$$^$;$se(B 3rd party issue e$B$G$7$?e(B http://redmine.ruby-lang.org/issues/show/3624

---

## [Sinatra jruby activerecord application and closing connections](https://www.ruby-forum.com/t/sinatra-jruby-activerecord-application-and-closing-connections/192304)

<div class="topic-metadata">

**Author:** [@pyr0](https://www.ruby-forum.com/u/pyr0)\
**Replies:** 8\
**Last updated:** [July 29, 2010, 3:11am UTC](https://www.ruby-forum.com/t/sinatra-jruby-activerecord-application-and-closing-connections/192304 "2010-07-29T03:11:43Z")

</div>

I am running a jruby application on sinatra and using activerecord and after I have given the application a significant amount of traffic, i start to run out of connections in my connection pool. It got me thinking t…

---

## [\[Bug #3624\] racc $B$G%3%s%Q%$%k%(%i!\<(B](https://www.ruby-forum.com/t/bug-3624-racc-b-g-3-s-q-k-i-b/192359)

<div class="topic-metadata">

**Author:** [@Makoto\_K](https://www.ruby-forum.com/u/Makoto_K)\
**Replies:** 0\
**Last updated:** [July 29, 2010, 12:44am UTC](https://www.ruby-forum.com/t/bug-3624-racc-b-g-3-s-q-k-i-b/192359 "2010-07-29T00:44:13Z")

</div>

Bug #3624: racc e$B$G%3%s%Q%$%k%(%i!\<e(B http://redmine.ruby-lang.org/issues/show/3624 e$B5/I\<\<Te(B: Makoto K. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Low e$B%+%F%4%je(B: lib ruby -v: ruby 1.8.7 (2009-12-24 patchlevel…

---

## [Which Ruby is in use?](https://www.ruby-forum.com/t/which-ruby-is-in-use/192298)

<div class="topic-metadata">

**Author:** [@Hassan\_S](https://www.ruby-forum.com/u/Hassan_S)\
**Replies:** 22\
**Last updated:** [July 29, 2010, 12:33am UTC](https://www.ruby-forum.com/t/which-ruby-is-in-use/192298 "2010-07-29T00:33:41Z")

</div>

Is there a way to tell from within a program which executable is being used – which executable, not the version – to run it? Seems like there should be, but I’m striking out… TIA,

---

## [Rubyw, RuntimeError, capturing the stack, FXRuby](https://www.ruby-forum.com/t/rubyw-runtimeerror-capturing-the-stack-fxruby/192351)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 4\
**Last updated:** [July 28, 2010, 11:59pm UTC](https://www.ruby-forum.com/t/rubyw-runtimeerror-capturing-the-stack-fxruby/192351 "2010-07-28T23:59:43Z")

</div>

Let’s say I’m running rubyw and a RunTimeError is raised … and I’m using FXRuby (which is tangential to this question) … and I want to put up a errorbox … But I want to capture the error message that would normally go…

---

## [Concept of iterator in c++ and ruby](https://www.ruby-forum.com/t/concept-of-iterator-in-c-and-ruby/197142)

<div class="topic-metadata">

**Author:** [@amiref](https://www.ruby-forum.com/u/amiref)\
**Replies:** 1\
**Last updated:** [July 28, 2010, 10:20pm UTC](https://www.ruby-forum.com/t/concept-of-iterator-in-c-and-ruby/197142 "2010-07-28T22:20:46Z")

</div>

Hi What is difference between concept of iterator in c++ and ruby ?

---

## [Problem in loop do](https://www.ruby-forum.com/t/problem-in-loop-do/192333)

<div class="topic-metadata">

**Author:** [@amiref](https://www.ruby-forum.com/u/amiref)\
**Replies:** 3\
**Last updated:** [July 28, 2010, 8:48pm UTC](https://www.ruby-forum.com/t/problem-in-loop-do/192333 "2010-07-28T20:48:32Z")

</div>

Hi please explain me with example in “loop do” , diffrence between “redo” and “next”. tnx

---

## [3D with Ruby (Ogre ?)](https://www.ruby-forum.com/t/3d-with-ruby-ogre/181471)

<div class="topic-metadata">

**Author:** [@kingkadelfek](https://www.ruby-forum.com/u/kingkadelfek)\
**Replies:** 23\
**Last updated:** [July 28, 2010, 8:23pm UTC](https://www.ruby-forum.com/t/3d-with-ruby-ogre/181471 "2010-07-28T20:23:41Z")

</div>

Hello, I’m french, sorry for my mistakes. I would like to do 3D with Ruby. I tried Ogre.rb, but this project requires a lot of other gems to be installed, and there are still some files missing. Can’t I just download …

---

## [Concept of iterator](https://www.ruby-forum.com/t/concept-of-iterator/192344)

<div class="topic-metadata">

**Author:** [@amiref](https://www.ruby-forum.com/u/amiref)\
**Replies:** 0\
**Last updated:** [July 28, 2010, 6:59pm UTC](https://www.ruby-forum.com/t/concept-of-iterator/192344 "2010-07-28T18:59:58Z")

</div>

Hi What is difference between concept of iterator in c++ and ruby ?

---

## [Accessing classes that are inherited from generics](https://www.ruby-forum.com/t/accessing-classes-that-are-inherited-from-generics/192025)

<div class="topic-metadata">

**Author:** [@Kevin\_Pratt](https://www.ruby-forum.com/u/Kevin_Pratt)\
**Replies:** 5\
**Last updated:** [July 28, 2010, 5:31pm UTC](https://www.ruby-forum.com/t/accessing-classes-that-are-inherited-from-generics/192025 "2010-07-28T17:31:34Z")

</div>

Hello, I have a few classes in a namespace that follow this form. public class ExampleName : BaseClass { } Any class that follows this structure does not get pulled through when I require my DLL. Does anyone have …

---

## [Module inclusion and class macro problem](https://www.ruby-forum.com/t/module-inclusion-and-class-macro-problem/192184)

<div class="topic-metadata">

**Author:** [@Rolf\_P](https://www.ruby-forum.com/u/Rolf_P)\
**Replies:** 6\
**Last updated:** [July 28, 2010, 5:05pm UTC](https://www.ruby-forum.com/t/module-inclusion-and-class-macro-problem/192184 "2010-07-28T17:05:48Z")

</div>

Hi I was reading the book “Metaprogramming Ruby” which I found quite good for a guy trying to improve on his novice Ruby skills. Parts of the book describes the creation of Class macros, and I got intrigued by this,…

---

## [\[ANN\] Inochi 4.0.1](https://www.ruby-forum.com/t/ann-inochi-4-0-1/192342)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [July 28, 2010, 4:03pm UTC](https://www.ruby-forum.com/t/ann-inochi-4-0-1/192342 "2010-07-28T16:03:55Z")

</div>

Inochi Gives life to Ruby projects http://snk.tuxfamily.org/lib/inochi/ Inochi is an infrastructure for Ruby projects that helps you test, document, package, publi…

---

## [REXML Input File Question](https://www.ruby-forum.com/t/rexml-input-file-question/191854)

<div class="topic-metadata">

**Author:** [@mperham](https://www.ruby-forum.com/u/mperham)\
**Replies:** 7\
**Last updated:** [July 28, 2010, 3:50pm UTC](https://www.ruby-forum.com/t/rexml-input-file-question/191854 "2010-07-28T15:50:16Z")

</div>

Hi, So I am having issues parsing in a document using the Ruby XML parser REXML. The issue seems to be with the first line of my file that identifies the XML file. Here are two xml files, the first is not parsed with…

---

## ["ant" test failures in windows](https://www.ruby-forum.com/t/ant-test-failures-in-windows/192233)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 1\
**Last updated:** [July 28, 2010, 3:11pm UTC](https://www.ruby-forum.com/t/ant-test-failures-in-windows/192233 "2010-07-28T15:11:44Z")

</div>

Hi all. Noticed that when I run the jruby test in doze, I get the following failures: which surprised me. Is this expected, and the build tests known to not be windows friendly yet? Thanks. -r

---

## [In Ruby 1.9 Test::Unit::TestCase parse ARGV differently](https://www.ruby-forum.com/t/in-ruby-1-9-test-testcase-parse-argv-differently/192290)

<div class="topic-metadata">

**Author:** [@oliver-peng](https://www.ruby-forum.com/u/oliver-peng)\
**Replies:** 2\
**Last updated:** [July 28, 2010, 3:09pm UTC](https://www.ruby-forum.com/t/in-ruby-1-9-test-testcase-parse-argv-differently/192290 "2010-07-28T15:09:43Z")

</div>

After upgrading to Ruby 1.9, I found that class Test::Unit::TestCase parse ARGV parameters in different way. Here is the sample code: require ‘test/unit’ class Test\_Main \< Test::Unit::TestCase def test1 puts “ARGV\[0…

---

## [Java Classes from Ruby w/ C libs](https://www.ruby-forum.com/t/java-classes-from-ruby-w-c-libs/191987)

<div class="topic-metadata">

**Author:** [@Skyler\_Onken](https://www.ruby-forum.com/u/Skyler_Onken)\
**Replies:** 8\
**Last updated:** [July 28, 2010, 2:28pm UTC](https://www.ruby-forum.com/t/java-classes-from-ruby-w-c-libs/191987 "2010-07-28T14:28:52Z")

</div>

Hi, Im new to Ruby and JRuby, but had a question: I am currently trying to generate Java classes from RFuzz’s random.rb. The problem ( i believe) is that it random.rb uses a method contained in a c library. I can ge…

---

## [Openssl. question about ec](https://www.ruby-forum.com/t/openssl-question-about-ec/192335)

<div class="topic-metadata">

**Author:** [@fell](https://www.ruby-forum.com/u/fell)\
**Replies:** 0\
**Last updated:** [July 28, 2010, 1:15pm UTC](https://www.ruby-forum.com/t/openssl-question-about-ec/192335 "2010-07-28T13:15:42Z")

</div>

Hi all, I have a question about openssl library Here it is. ‘Security on rails’ book has a sample require ‘openssl’ include OpenSSL private\_key2 = PKey::RSA.new(File.read(“host.key”)) cert2 = X509::Certificate.new(…

---

## [Multidimensional array insert syntax](https://www.ruby-forum.com/t/multidimensional-array-insert-syntax/192311)

<div class="topic-metadata">

**Author:** [@pezdude](https://www.ruby-forum.com/u/pezdude)\
**Replies:** 8\
**Last updated:** [July 28, 2010, 1:11pm UTC](https://www.ruby-forum.com/t/multidimensional-array-insert-syntax/192311 "2010-07-28T13:11:35Z")

</div>

Hi, Can anyone help me with the correct syntax to insert into a multidimensional array… answer\_choices = \[ \[incorrect\_ans\_2, incorrect\_anno\_2\], \[incorrect\_ans\_3, incorrect\_anno\_3\], \[incorrect\_ans\_4, incorrect\_anno\_…

---

## [\[1.9\] Queue$B$N(Bfairness](https://www.ruby-forum.com/t/1-9-queue-b-n-bfairness/192334)

<div class="topic-metadata">

**Author:** [@NAKAMURAS\_Hiroshi](https://www.ruby-forum.com/u/NAKAMURAS_Hiroshi)\
**Replies:** 0\
**Last updated:** [July 28, 2010, 1:04pm UTC](https://www.ruby-forum.com/t/1-9-queue-b-n-bfairness/192334 "2010-07-28T13:04:33Z")

</div>

Queuee$B$Ne(Bfairnesse$B$OI,MW$G$7$g$&$+!#e(B e$B$3$3$Ge(B"fairness"e$B$G0U?^$7$F$$$k$N$O!"e(BQueue#pope$B$GJ#?t$N%9%l%C%I$,BT$C$F$$e(B e$B$k\>l9g$K!“0lHVD9$/BT$C$F$$$k%9%l%C%I$+$i=g$K@)8f$rEO$5$l$k$3$H!”$G$9!#e(B e$B$…

---

## [RubyGems.org Still Down?](https://www.ruby-forum.com/t/rubygems-org-still-down/192222)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 5\
**Last updated:** [July 28, 2010, 12:23pm UTC](https://www.ruby-forum.com/t/rubygems-org-still-down/192222 "2010-07-28T12:23:34Z")

</div>

http://rubygems.org/

---

## [Syntax](https://www.ruby-forum.com/t/syntax/192163)

<div class="topic-metadata">

**Author:** [@raghu\_muni](https://www.ruby-forum.com/u/raghu_muni)\
**Replies:** 9\
**Last updated:** [July 28, 2010, 10:56am UTC](https://www.ruby-forum.com/t/syntax/192163 "2010-07-28T10:56:19Z")

</div>

Hi all, Is there anything in ruby like we use “this” pointer in ruby.Like,how do we write $this-\>config = parse\_ini\_file(‘web/display.ini’, true) in ruby?? Thanks

---

## [Why i can't get the value out of each block?](https://www.ruby-forum.com/t/why-i-cant-get-the-value-out-of-each-block/192320)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 1\
**Last updated:** [July 28, 2010, 7:53am UTC](https://www.ruby-forum.com/t/why-i-cant-get-the-value-out-of-each-block/192320 "2010-07-28T07:53:41Z")

</div>

a=\[1,2,0,10\] a.each.with\_index{|item,idx| begin puts 10/item rescue print “it is my wrong “,item,idx,”\\n” x=item end} puts “x=”,x the output is :NameError: undefined local variable or method \`x’ for main:Object …

---

## [Ruby calc.rb or just calc.rb](https://www.ruby-forum.com/t/ruby-calc-rb-or-just-calc-rb/192204)

<div class="topic-metadata">

**Author:** [@marlon](https://www.ruby-forum.com/u/marlon)\
**Replies:** 9\
**Last updated:** [July 28, 2010, 7:21am UTC](https://www.ruby-forum.com/t/ruby-calc-rb-or-just-calc-rb/192204 "2010-07-28T07:21:16Z")

</div>

Beginner here (in ANY programming language), so pls bear with me. Please see the first example on this page. http://pine.fm/LearnToProgram/?Chapter=01 It says to type in ruby calc.rb I find it doesn’t work. What wor…

---

## [FileDialog in a IronRuby App](https://www.ruby-forum.com/t/filedialog-in-a-ironruby-app/192280)

<div class="topic-metadata">

**Author:** [@michbukana](https://www.ruby-forum.com/u/michbukana)\
**Replies:** 2\
**Last updated:** [July 28, 2010, 3:46am UTC](https://www.ruby-forum.com/t/filedialog-in-a-ironruby-app/192280 "2010-07-28T03:46:40Z")

</div>

Hi all, How can I call the filedialog window from an IronRuby program, getting the list of files selected in the dialog in a String or Array variable? Thank you in advance… Eduardo B.

---

## [Text extraction from MS Office and PDF](https://www.ruby-forum.com/t/text-extraction-from-ms-office-and-pdf/192128)

<div class="topic-metadata">

**Author:** [@Vitali](https://www.ruby-forum.com/u/Vitali)\
**Replies:** 1\
**Last updated:** [July 28, 2010, 3:34am UTC](https://www.ruby-forum.com/t/text-extraction-from-ms-office-and-pdf/192128 "2010-07-28T03:34:24Z")

</div>

Hello, I’m looking for libraries to do text extraction from MS Office and PDF file formats. Also looking for libraries to do HTML rendering of documents in the same formats. I know of couple of commercial libraries f…

---

## [\[Bug #3593\] cont.c$B$G(B"PAGE\_SIZE" redefined](https://www.ruby-forum.com/t/bug-3593-cont-c-b-g-b-page-size-redefined/191955)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 1\
**Last updated:** [July 28, 2010, 2:27am UTC](https://www.ruby-forum.com/t/bug-3593-cont-c-b-g-b-page-size-redefined/191955 "2010-07-28T02:27:41Z")

</div>

Bug #3593: cont.ce$B$Ge(B"PAGE\_SIZE" redefined http://redmine.ruby-lang.org/issues/show/3593 e$B5/I\<\<Te(B: Yui NARUSE e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Koichi Sasada, Target version: 1.9.2 r…

---

## [Nmap-1.1.0](https://www.ruby-forum.com/t/nmap-1-1-0/192175)

<div class="topic-metadata">

**Author:** [@ahoward](https://www.ruby-forum.com/u/ahoward)\
**Replies:** 3\
**Last updated:** [July 28, 2010, 12:49am UTC](https://www.ruby-forum.com/t/nmap-1-1-0/192175 "2010-07-28T00:49:21Z")

</div>

NAME nmap (reference ruby class which combines narray and mmap) na\_str (c extension) REQUIREMENTS mmap : http://moulon.inra.fr/ruby/mmap.html narray : http://narray.rubyforge.org/ URIS http://codeforpeople.com/lib…

---

## [Re-organize original text data then write in files](https://www.ruby-forum.com/t/re-organize-original-text-data-then-write-in-files/192125)

<div class="topic-metadata">

**Author:** [@junhuiliao](https://www.ruby-forum.com/u/junhuiliao)\
**Replies:** 3\
**Last updated:** [July 28, 2010, 12:14am UTC](https://www.ruby-forum.com/t/re-organize-original-text-data-then-write-in-files/192125 "2010-07-28T00:14:13Z")

</div>

Dear all, Recently, I have to do this job. Re-organize the original text data then write in files. The original data is like this (tsv format). First line: time\_1.1 signal\_1.1 time\_2.1 signal\_2.1 … time\_4096.1…

---

## [Custom rake task](https://www.ruby-forum.com/t/custom-rake-task/192291)

<div class="topic-metadata">

**Author:** [@GoodeS\_Troy](https://www.ruby-forum.com/u/GoodeS_Troy)\
**Replies:** 7\
**Last updated:** [July 27, 2010, 11:20pm UTC](https://www.ruby-forum.com/t/custom-rake-task/192291 "2010-07-27T23:20:57Z")

</div>

I was following Derek Bailey’s article from yesterday entitled “How to Build Custom Rake Tasks; The Right Way” \<http://www.lostechies.com/blogs/derickbailey/archive/2010/07/26/how-to- build-custom-rake-tasks-the-right…

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

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