# Ruby

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

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

---

## [Puts returns nil?](https://www.ruby-forum.com/t/puts-returns-nil/81160)

<div class="topic-metadata">

**Author:** [@arfon](https://www.ruby-forum.com/u/arfon)\
**Replies:** 5\
**Last updated:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/puts-returns-nil/81160 "2007-01-06T19:30:35Z")

</div>

Hi, I’m sorry to be asking such a daft question but I need a concept explaining… I’m working through the excellent Chris P. book ‘Learn to program’ and I don’t get one of the examples he gives. In particular I don’t …

---

## [Cannot compile qtruby 1.0.13](https://www.ruby-forum.com/t/cannot-compile-qtruby-1-0-13/81059)

<div class="topic-metadata">

**Author:** [@Fredrik\_J](https://www.ruby-forum.com/u/Fredrik_J)\
**Replies:** 1\
**Last updated:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/cannot-compile-qtruby-1-0-13/81059 "2007-01-06T19:30:34Z")

</div>

Hello all, I am trying to install qtruby, but without success. I downloaded qtruby-1.0.13 (and I tried some versions prior to this one also), then typed ./configure --with-smoke=“qt” --with-qt-dir=/usr/local/qt --pre…

---

## [Problem in Unit Testing Methods that start new threads](https://www.ruby-forum.com/t/problem-in-unit-testing-methods-that-start-new-threads/81060)

<div class="topic-metadata">

**Author:** [@gnufied](https://www.ruby-forum.com/u/gnufied)\
**Replies:** 12\
**Last updated:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/problem-in-unit-testing-methods-that-start-new-threads/81060 "2007-01-06T19:30:33Z")

</div>

I have a bit of doubt, in Unit Testing Programs that start new threads. Please have a look at the code below: class Foobar def hello\_world p “Hello World” @thread\_status = false end def new\_thread\_start Thread.ne…

---

## [Including core class extensions from gems](https://www.ruby-forum.com/t/including-core-class-extensions-from-gems/81162)

<div class="topic-metadata">

**Author:** [@sbraford](https://www.ruby-forum.com/u/sbraford)\
**Replies:** 1\
**Last updated:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/including-core-class-extensions-from-gems/81162 "2007-01-06T19:30:30Z")

</div>

Hey all, This question could just as easily be a good fit for the RoR list, but I figured it’s really more of a Ruby question, pertaining to a Rails-specific gem in this case. What I’m trying to do… is leverage Rails…

---

## [New to list, question about html formatting with Ruby using](https://www.ruby-forum.com/t/new-to-list-question-about-html-formatting-with-ruby-using/81234)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 0\
**Last updated:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/new-to-list-question-about-html-formatting-with-ruby-using/81234 "2007-01-06T19:30:30Z")

</div>

Hi all, I am trying to figure out a way to not chop off my text mid-word using truncate() and redcloth. index.rhtml article\_html is formatted with RedCloth \<%= truncate(post.article\_html, 80) %\> I have a db table n…

---

## [General Programming Books](https://www.ruby-forum.com/t/general-programming-books/80880)

<div class="topic-metadata">

**Author:** [@marksbrain](https://www.ruby-forum.com/u/marksbrain)\
**Replies:** 25\
**Last updated:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/general-programming-books/80880 "2007-01-06T19:30:30Z")

</div>

Hi all, This is not ‘yet another recommended ruby books’ question, but more a ‘general programming’ one. I often read a reference to non language specific books here and was just wondering what peoples favourites ar…

---

## [Mini-contest: eigenclass.org "Happy 2007!" Ruby challenge (2](https://www.ruby-forum.com/t/mini-contest-eigenclass-org-happy-2007-ruby-challenge-2/81230)

<div class="topic-metadata">

**Author:** [@tulkas](https://www.ruby-forum.com/u/tulkas)\
**Replies:** 0\
**Last updated:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/mini-contest-eigenclass-org-happy-2007-ruby-challenge-2/81230 "2007-01-06T19:30:28Z")

</div>

http://eigenclass.org/rubychallenge2007 Your mission, should you choose to accept it, is to find the secret message hidden in a Ruby script, follow the instructions to generate the code that will prove you’ve found …

---

## [Ruby to javascript](https://www.ruby-forum.com/t/ruby-to-javascript/81228)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/ruby-to-javascript/81228 "2007-01-06T19:30:27Z")

</div>

i’ve downloaded a demo of rb2js.rb (ruby to javascript) from http://po-ru.com/diary/convert-ruby-to-javascript/ this demo works great. then i’ve try to use rb2js.rb to convert a Color class (which has been tested wit…

---

## [A different approach to solving the abandoned project proble](https://www.ruby-forum.com/t/a-different-approach-to-solving-the-abandoned-project-proble/81227)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/a-different-approach-to-solving-the-abandoned-project-proble/81227 "2007-01-06T19:30:26Z")

</div>

Due to some recent issues around abandoned projects in the ruby community, I’ve been thinking about project continuation in the context of Free/Open Source software hosted on RubyForge (and by extension SourceForge, …

---

## [(wacky?) protected behavior](https://www.ruby-forum.com/t/wacky-protected-behavior/81109)

<div class="topic-metadata">

**Author:** [@dawillis](https://www.ruby-forum.com/u/dawillis)\
**Replies:** 4\
**Last updated:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/wacky-protected-behavior/81109 "2007-01-06T19:30:25Z")

</div>

class Foo def store(o) o.dave=1 end end class SubFoo \< Foo def initialize @dave=2 end def store super(self) end protected attr\_accessor :dave end sf = SubFoo.new sf.store p sf The above code executes an…

---

## [Image\_science 1.1.0 Released](https://www.ruby-forum.com/t/image-science-1-1-0-released/81224)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/image-science-1-1-0-released/81224 "2007-01-06T19:30:24Z")

</div>

image\_science version 1.1.0 has been released! http://rubyforge.org/projects/seattlerb ImageScience is a clean and happy Ruby library that generates thumbnails – and kicks the living crap out of RMagick. Oh, and it d…

---

## [Send to access private members](https://www.ruby-forum.com/t/send-to-access-private-members/81185)

<div class="topic-metadata">

**Author:** [@dawillis](https://www.ruby-forum.com/u/dawillis)\
**Replies:** 1\
**Last updated:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/send-to-access-private-members/81185 "2007-01-06T19:30:23Z")

</div>

I’m a confused about why the following code works: class Foo private def hello puts “hello” end end f = Foo.new f.send(:hello) whereas f.hello will obviously fail. I have tried this with private member setting…

---

## [Getting current context (from C)](https://www.ruby-forum.com/t/getting-current-context-from-c/81221)

<div class="topic-metadata">

**Author:** [@gga](https://www.ruby-forum.com/u/gga)\
**Replies:** 0\
**Last updated:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/getting-current-context-from-c/81221 "2007-01-06T19:30:21Z")

</div>

I have a C function that I would like it to either be allowed to receive a proc, method or a symbol. In case a symbol is received, I would like that symbol to be converted to a proc (by calling method() in the context…

---

## [\[Newbie\] Question about instance method scoping/parsing (?)](https://www.ruby-forum.com/t/newbie-question-about-instance-method-scoping-parsing/81180)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 1\
**Last updated:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/newbie-question-about-instance-method-scoping-parsing/81180 "2007-01-06T19:30:20Z")

</div>

Can anyone explain to me what’s going on here? #!/usr/bin/env ruby -w class Thingy attr\_accessor :name def test puts “self.name: #{self.name}” puts “name: #{name}” name ||= 'default value' puts "self.name: …

---

## [ARGF.read() causes ArgumentError](https://www.ruby-forum.com/t/argf-read-causes-argumenterror/81117)

<div class="topic-metadata">

**Author:** [@Minero\_A](https://www.ruby-forum.com/u/Minero_A)\
**Replies:** 2\
**Last updated:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/argf-read-causes-argumenterror/81117 "2007-01-06T19:30:19Z")

</div>

e$B@DLZ$G$9!#e(B e$B0z?t$r\>JN,$7$?e(B ARGF.read e$B$,;H$($J$/$J$C$F$$$^$9!#e(B tukumo:~ % ruby -v -e ‘ARGF.read’ ruby 1.9.0 (2007-01-03 patchlevel 0) \[x86\_64-linux\] -e:1:in read': wrong number of arguments (0 for 1) …

---

## [Revision number variable](https://www.ruby-forum.com/t/revision-number-variable/81216)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 0\
**Last updated:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/revision-number-variable/81216 "2007-01-06T19:30:18Z")

</div>

e$B!!$5$5$@$G$9!#e(B e$B!!$;$C$+$/e(B Subversion e$B$K$7$?$N$G!“e(Bruby e$B%3%^%s%I$G%j%S%8%g%sHV9f$rCN$kJ}e(B e$BK!!Je(BRUBY\_REVISION\_NUMBER e$BDj?t!”$H$+!K$,$"$k$H4r$7$$$H;W$&$N$G$9$,!"$$$+e(B e$B$,$G$7$g$&$+!#e(B …

---

## [Ruby declared TIOBE's Programming Language of the Year 2006!](https://www.ruby-forum.com/t/ruby-declared-tiobes-programming-language-of-the-year-2006/81209)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 0\
**Last updated:** [January 6, 2007, 7:19pm UTC](https://www.ruby-forum.com/t/ruby-declared-tiobes-programming-language-of-the-year-2006/81209 "2007-01-06T19:19:09Z")

</div>

I just posted this to the O’Reilly Ruby blog and John L. suggested I should cross-post it here as well: Ruby is now in the top ten languages in the TIOBE indexhttp://www.tiobe.com/tpci.htm, and has been declared Pr…

---

## [Unsubscription trouble (was Re: unsubscribe)](https://www.ruby-forum.com/t/unsubscription-trouble-was-re-unsubscribe/81207)

<div class="topic-metadata">

**Author:** [@Mat\_S](https://www.ruby-forum.com/u/Mat_S)\
**Replies:** 0\
**Last updated:** [January 6, 2007, 7:18pm UTC](https://www.ruby-forum.com/t/unsubscription-trouble-was-re-unsubscribe/81207 "2007-01-06T19:18:56Z")

</div>

On Jan 4, 2007, at 9:33 AM, David P. wrote: It’s BROKEN. I’ve tried this many times, in many ways. Well, I’m not a fan of “works for me”, but I just subscribed and unsubscribed my secondary address with no problem. …

---

## [Win32OLE: how to pass parameters by reference?](https://www.ruby-forum.com/t/win32ole-how-to-pass-parameters-by-reference/80969)

<div class="topic-metadata">

**Author:** [@breko](https://www.ruby-forum.com/u/breko)\
**Replies:** 3\
**Last updated:** [January 6, 2007, 7:18pm UTC](https://www.ruby-forum.com/t/win32ole-how-to-pass-parameters-by-reference/80969 "2007-01-06T19:18:08Z")

</div>

Hi, I need to call an OLE method that takes a VARIANT argument, and fills it with data. How can I accomplish this? Somewhere in the ruby-cvs attic I’ve found WIN32OLE\_VARIANT, unfortunately it is removed now. Long ob…

---

## [Managing "requires" in projects with many subdirectories](https://www.ruby-forum.com/t/managing-requires-in-projects-with-many-subdirectories/81011)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [January 6, 2007, 7:17pm UTC](https://www.ruby-forum.com/t/managing-requires-in-projects-with-many-subdirectories/81011 "2007-01-06T19:17:59Z")

</div>

I’d like to know how people people managing their file dependencies with projects with several directories. Described below is the problem, and a demo of a possible rudimentary solution for which I’d like feedback/di…

---

## [Getting unexpected return (LocalJumpError) Rubyscript2exe](https://www.ruby-forum.com/t/getting-unexpected-return-localjumperror-rubyscript2exe/81165)

<div class="topic-metadata">

**Author:** [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Replies:** 1\
**Last updated:** [January 5, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/getting-unexpected-return-localjumperror-rubyscript2exe/81165 "2007-01-05T17:11:30Z")

</div>

Hi, When running Rubyscript2exe on my .rb application. I get and unexpected return (LocalJumpError). But works fine when I do ruby app.rb. The only thing on that line is return 0; Is this normal ? If not. anyone know…

---

## [Help: SWIG & Ruby](https://www.ruby-forum.com/t/help-swig-ruby/81139)

<div class="topic-metadata">

**Author:** [@syepes](https://www.ruby-forum.com/u/syepes)\
**Replies:** 0\
**Last updated:** [January 4, 2007, 2:48pm UTC](https://www.ruby-forum.com/t/help-swig-ruby/81139 "2007-01-04T14:48:17Z")

</div>

Hi All, I need some help with SWIG and Ruby, I am trying to use some C functions in ruby. I have just started with SWIG and have been reading the manual en posts around the net, but I have not been able to get this t…

---

## [Scan string w regex .. and HNYTAOY!](https://www.ruby-forum.com/t/scan-string-w-regex-and-hnytaoy/81134)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 7\
**Last updated:** [January 4, 2007, 2:46pm UTC](https://www.ruby-forum.com/t/scan-string-w-regex-and-hnytaoy/81134 "2007-01-04T14:46:55Z")

</div>

HNYTAOY (Dry version of … Happy New Year To All Of You) I am trying to get an array of email addresses from a string , as this string is coming from an input textarea in a from, even if I ask for a blank between eac…

---

## [Last stable version 185-21](https://www.ruby-forum.com/t/last-stable-version-185-21/81133)

<div class="topic-metadata">

**Author:** [@jabe](https://www.ruby-forum.com/u/jabe)\
**Replies:** 1\
**Last updated:** [January 4, 2007, 12:58pm UTC](https://www.ruby-forum.com/t/last-stable-version-185-21/81133 "2007-01-04T12:58:33Z")

</div>

Does anyone have some experiences with the version 185-21 ? Starting an fx-application occurs thousands of warnings, starting the fxri takes a lot of time (entry-count is “exploded”). This version seems to be realy bi…

---

## [Announce: pam module for blocking failed attempts](https://www.ruby-forum.com/t/announce-pam-module-for-blocking-failed-attempts/80940)

<div class="topic-metadata">

**Author:** [@prhlava](https://www.ruby-forum.com/u/prhlava)\
**Replies:** 2\
**Last updated:** [January 4, 2007, 12:31pm UTC](https://www.ruby-forum.com/t/announce-pam-module-for-blocking-failed-attempts/80940 "2007-01-04T12:31:59Z")

</div>

for one reason or another, the pam\_abl module stopped working with the latest ssh and i needed alternative. so i created a pam module (written in ruby, using pam-ruby, ruby-pam + sqlite3 libraries) which blocks partic…

---

## [How to run SciTE from any path](https://www.ruby-forum.com/t/how-to-run-scite-from-any-path/81120)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 3\
**Last updated:** [January 4, 2007, 12:24pm UTC](https://www.ruby-forum.com/t/how-to-run-scite-from-any-path/81120 "2007-01-04T12:24:27Z")

</div>

Hi all, Sometimes I need to start SciTE from a console. But I can run it from only one folder which contains SciTE.exe under XP. Is it possible to run it from any path? Thanks, Li

---

## [Ruby-changes](https://www.ruby-forum.com/t/ruby-changes/81131)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 0\
**Last updated:** [January 4, 2007, 11:00am UTC](https://www.ruby-forum.com/t/ruby-changes/81131 "2007-01-04T11:00:15Z")

</div>

e$B!!$5$5$@$G$9!#e(B e$B!!%3%%C%H$5$l$?$H$-!"2?$,%3%%C%H$5$l$?$N$+!"$=$N:9J,$rCN$j$?$+$C$?$Ne(B e$B$H!"$"$H$G$^$H$a$FFI$\_$?$+$C$?$N$Ge(B removed\_email\_address@domain.invalid e$B$H$$$&e(B ML e$B$r:n$j$^$7$?!#e(Bruby-c…

---

## [Jabber server in Ruby](https://www.ruby-forum.com/t/jabber-server-in-ruby/81039)

<div class="topic-metadata">

**Author:** [@Gerardo\_SSGSSS\_mez](https://www.ruby-forum.com/u/Gerardo_SSGSSS_mez)\
**Replies:** 5\
**Last updated:** [January 4, 2007, 6:07am UTC](https://www.ruby-forum.com/t/jabber-server-in-ruby/81039 "2007-01-04T06:07:51Z")

</div>

Does a Jabber server written in Ruby exist already or in development, besides xmppd? Is anybody planning to write one?

---

## [Where to begin?](https://www.ruby-forum.com/t/where-to-begin/80946)

<div class="topic-metadata">

**Author:** [@Oin\_M](https://www.ruby-forum.com/u/Oin_M)\
**Replies:** 6\
**Last updated:** [January 4, 2007, 5:11am UTC](https://www.ruby-forum.com/t/where-to-begin/80946 "2007-01-04T05:11:45Z")

</div>

Hello! I would like to start working on a real project. Start “seeing some action”. I’ve been reading through ruby books for half a year now, but i haven’t yet started to make real programs. What I would like to do …

---

## [Is there a college textbook for Ruby?](https://www.ruby-forum.com/t/is-there-a-college-textbook-for-ruby/81106)

<div class="topic-metadata">

**Author:** [@jimdeuc](https://www.ruby-forum.com/u/jimdeuc)\
**Replies:** 3\
**Last updated:** [January 4, 2007, 3:38am UTC](https://www.ruby-forum.com/t/is-there-a-college-textbook-for-ruby/81106 "2007-01-04T03:38:12Z")

</div>

The Pragmatic Programmer’s “Programming Ruby” book is great, but I’m looking for something that is split up with questions and lessons and junk like that. You know how school textbooks are: they explain something, and…

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

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