# Ruby

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

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

---

## [Index and Query (#54)](https://www.ruby-forum.com/t/index-and-query-54/68798)

<div class="topic-metadata">

**Author:** [@james](https://www.ruby-forum.com/u/james)\
**Replies:** 0\
**Last updated:** [November 17, 2005, 3:02pm UTC](https://www.ruby-forum.com/t/index-and-query-54/68798 "2005-11-17T15:02:15Z")

</div>

This was a fun quiz for me because I really don’t know anything about indexing documents. I learned a ton just by reading the varied solutions. Before we get into the bit magic, check out this simple Hash style solu…

---

## [YAML on 1.8.3 question](https://www.ruby-forum.com/t/yaml-on-1-8-3-question/48060)

<div class="topic-metadata">

**Author:** [@george.moschovitis](https://www.ruby-forum.com/u/george.moschovitis)\
**Replies:** 5\
**Last updated:** [November 17, 2005, 12:36pm UTC](https://www.ruby-forum.com/t/yaml-on-1-8-3-question/48060 "2005-11-17T12:36:18Z")

</div>

Hello all, I have a yaml file that I parse like this yaml = YAML.parse(yaml\_str) the ‘yaml\_str’ variable holds the serialized version of an Object. Lets say this object hase 2 attributes, ‘title’ and ‘body’. How can…

---

## [Nitro + Og 0.25.0 Og scope, dynamic finders, evolution, help](https://www.ruby-forum.com/t/nitro-og-0-25-0-og-scope-dynamic-finders-evolution-help/48453)

<div class="topic-metadata">

**Author:** [@george.moschovitis](https://www.ruby-forum.com/u/george.moschovitis)\
**Replies:** 4\
**Last updated:** [November 17, 2005, 12:27pm UTC](https://www.ruby-forum.com/t/nitro-og-0-25-0-og-scope-dynamic-finders-evolution-help/48453 "2005-11-17T12:27:14Z")

</div>

Dear devs, I am pleased to announce new versions of Nitro and Og homepage: http://www.nitrohq.com download: http://rubyforge.org/projects/nitro/ mailing list: http://rubyforge.org/mailman/listinfo/nitro-general irc:…

---

## [FXRuby, FXTreeList](https://www.ruby-forum.com/t/fxruby-fxtreelist/48046)

<div class="topic-metadata">

**Author:** [@Fleck](https://www.ruby-forum.com/u/Fleck)\
**Replies:** 3\
**Last updated:** [November 17, 2005, 11:44am UTC](https://www.ruby-forum.com/t/fxruby-fxtreelist/48046 "2005-11-17T11:44:54Z")

</div>

Hi, I’ ve created a TreeList that shows the files in a directory. How can I create a context menu that pops up, when I right-click on a selected item? I know how to create the popup menu, but how can I prevent it to …

---

## [Ruby Weekly News 7th - 13th November 2005](https://www.ruby-forum.com/t/ruby-weekly-news-7th-13th-november-2005/47954)

<div class="topic-metadata">

**Author:** [@timsuth](https://www.ruby-forum.com/u/timsuth)\
**Replies:** 1\
**Last updated:** [November 17, 2005, 9:35am UTC](https://www.ruby-forum.com/t/ruby-weekly-news-7th-13th-november-2005/47954 "2005-11-17T09:35:07Z")

</div>

http://www.rubyweeklynews.org/20051113.html Ruby Weekly News 7th - 13th November 2005 Ruby Weekly News is a summary of the week’s activity on the ruby-talk mailing list / comp.lang.ruby newsgroup, brought to you by T…

---

## [Determining the directory a script is running in](https://www.ruby-forum.com/t/determining-the-directory-a-script-is-running-in/48449)

<div class="topic-metadata">

**Author:** [@kevin.jackson](https://www.ruby-forum.com/u/kevin.jackson)\
**Replies:** 3\
**Last updated:** [November 17, 2005, 9:32am UTC](https://www.ruby-forum.com/t/determining-the-directory-a-script-is-running-in/48449 "2005-11-17T09:32:07Z")

</div>

How can I find the directory that the current script is running from? I need to run a script and (without any arguments), assign a variable based on the directory that the script is being executed from, ie c:\\my\_dir\> …

---

## [Parameter names from reflection?](https://www.ruby-forum.com/t/parameter-names-from-reflection/47885)

<div class="topic-metadata">

**Author:** [@mercury542](https://www.ruby-forum.com/u/mercury542)\
**Replies:** 7\
**Last updated:** [November 17, 2005, 4:57am UTC](https://www.ruby-forum.com/t/parameter-names-from-reflection/47885 "2005-11-17T04:57:40Z")

</div>

Is there a way to use reflection or some other method to return the names of the parameters a method uses? I know that ‘arity’ will return the number of parameters, but I’m looking for the names of them. Thanks in …

---

## [Re: Object#to\_b](https://www.ruby-forum.com/t/re-object-to-b/67629)

<div class="topic-metadata">

**Author:** [@daniels](https://www.ruby-forum.com/u/daniels)\
**Replies:** 0\
**Last updated:** [November 17, 2005, 1:50am UTC](https://www.ruby-forum.com/t/re-object-to-b/67629 "2005-11-17T01:50:58Z")

</div>

Unless somebody can come up with a decent use-case, I’d say that we just change the if evaluations to also allow subclasses of FalseClass and NilClass (which will all be just singletons as they don’t have new). Or ch…

---

## [Re: HTTP IO?](https://www.ruby-forum.com/t/re-http-io/67511)

<div class="topic-metadata">

**Author:** [@daniels](https://www.ruby-forum.com/u/daniels)\
**Replies:** 1\
**Last updated:** [November 17, 2005, 1:32am UTC](https://www.ruby-forum.com/t/re-http-io/67511 "2005-11-17T01:32:54Z")

</div>

I am reading the stream from a Ogg stream server (VLC) in the local machine. This requires fast reading. Are there any other options in ruby to read a data stream via HTTP?? Now that I know I know your use-case, de…

---

## [DRb Crashing](https://www.ruby-forum.com/t/drb-crashing/102484)

<div class="topic-metadata">

**Author:** [@james](https://www.ruby-forum.com/u/james)\
**Replies:** 17\
**Last updated:** [November 16, 2005, 11:47pm UTC](https://www.ruby-forum.com/t/drb-crashing/102484 "2005-11-16T23:47:26Z")

</div>

If I launch this server: #!/usr/local/bin/ruby require “drb” require “rinda/tuplespace” tuplespace = Rinda::TupleSpace.new DRb.start\_service(“druby://localhost:61676”, tuplespace) loop do nums = Array.new(rand(…

---

## [Post/View Open Source Jobs](https://www.ruby-forum.com/t/post-view-open-source-jobs/51632)

<div class="topic-metadata">

**Author:** [@superiorss](https://www.ruby-forum.com/u/superiorss)\
**Replies:** 4\
**Last updated:** [November 16, 2005, 11:32pm UTC](https://www.ruby-forum.com/t/post-view-open-source-jobs/51632 "2005-11-16T23:32:23Z")

</div>

Post/View Open Source Jobs

---

## [Today's "Dilbert" cartoon](https://www.ruby-forum.com/t/todays-dilbert-cartoon/48125)

<div class="topic-metadata">

**Author:** [@lyle.johnson](https://www.ruby-forum.com/u/lyle.johnson)\
**Replies:** 0\
**Last updated:** [November 16, 2005, 11:26pm UTC](https://www.ruby-forum.com/t/todays-dilbert-cartoon/48125 "2005-11-16T23:26:21Z")

</div>

Apologies if someone’s already posted this, I saw it in the local newspaper at lunch today: http://www.unitedmedia.com/comics/dilbert/archive/images/dilbert2002220051116.gif

---

## [Metaprogramming and rdoc](https://www.ruby-forum.com/t/metaprogramming-and-rdoc/48094)

<div class="topic-metadata">

**Author:** [@fugalh](https://www.ruby-forum.com/u/fugalh)\
**Replies:** 3\
**Last updated:** [November 16, 2005, 10:10pm UTC](https://www.ruby-forum.com/t/metaprogramming-and-rdoc/48094 "2005-11-16T22:10:48Z")

</div>

I find myself metaprogramming in ruby more and more. I think this is a good thing. It also has the unfortunate side effect of pitting me against my old friend rdoc. I want to document the methods, but rdoc has no clue…

---

## [YAML and constant objects](https://www.ruby-forum.com/t/yaml-and-constant-objects/47992)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 4\
**Last updated:** [November 16, 2005, 9:55pm UTC](https://www.ruby-forum.com/t/yaml-and-constant-objects/47992 "2005-11-16T21:55:34Z")

</div>

Hello all, I have an immutable class Foo (once a foo object is created its state is fixed). Foo objects have a bunch of attributes so their yaml strings are fairly long. There is a small set of standard, frequently …

---

## [FasterCSV 0.1.3--CSV parsing without the wait!](https://www.ruby-forum.com/t/fastercsv-0-1-3-csv-parsing-without-the-wait/49114)

<div class="topic-metadata">

**Author:** [@james](https://www.ruby-forum.com/u/james)\
**Replies:** 0\
**Last updated:** [November 16, 2005, 9:34pm UTC](https://www.ruby-forum.com/t/fastercsv-0-1-3-csv-parsing-without-the-wait/49114 "2005-11-16T21:34:27Z")

</div>

FasterCSV 0.1.3 Released FasterCSV grew out of my involvement in a discussion on the Ruby Core mailing list. The heart of this new CSV parser is a single, hyper- optimized Regular Expression from “Mastering Regular E…

---

## [Re: Proposed RCR: Object#replace](https://www.ruby-forum.com/t/re-proposed-rcr-object-replace/49070)

<div class="topic-metadata">

**Author:** [@Daniel.Berger](https://www.ruby-forum.com/u/Daniel.Berger)\
**Replies:** 0\
**Last updated:** [November 16, 2005, 9:01pm UTC](https://www.ruby-forum.com/t/re-proposed-rcr-object-replace/49070 "2005-11-16T21:01:16Z")

</div>

if o.respond\_to? :clone instance\_variable\_set(name, o.clone) end end end end How does instance variable duplication qualify as the general meaning of “replace”? It’s not even part of the exist…

---

## [Where is the each\_recursive method defined?](https://www.ruby-forum.com/t/where-is-the-each-recursive-method-defined/48050)

<div class="topic-metadata">

**Author:** [@snailigrape](https://www.ruby-forum.com/u/snailigrape)\
**Replies:** 1\
**Last updated:** [November 16, 2005, 8:12pm UTC](https://www.ruby-forum.com/t/where-is-the-each-recursive-method-defined/48050 "2005-11-16T20:12:51Z")

</div>

\#i’m new to ruby. i download the machanize gem and install it. in machanize.rb , root\_node has an each\_recursive method,but i can’t fine the definition in docs. who can tell me what to do,thanks in advance. def sel…

---

## [\[ANN\] Ruby Forum](https://www.ruby-forum.com/t/ann-ruby-forum/47958)

<div class="topic-metadata">

**Author:** [@andreas](https://www.ruby-forum.com/u/andreas)\
**Replies:** 56\
**Last updated:** [November 16, 2005, 8:12pm UTC](https://www.ruby-forum.com/t/ann-ruby-forum/47958 "2005-11-16T20:12:49Z")

</div>

Hi, I have set up a forum that mirrors the ruby-talk and rails mailing lists: http://www.ruby-forum.com/ If you notice problems or have any suggestions, please send me a mail. Andreas

---

## [Unable to access jobs.rubynow.com](https://www.ruby-forum.com/t/unable-to-access-jobs-rubynow-com/48109)

<div class="topic-metadata">

**Author:** [@joshknowles](https://www.ruby-forum.com/u/joshknowles)\
**Replies:** 0\
**Last updated:** [November 16, 2005, 7:57pm UTC](https://www.ruby-forum.com/t/unable-to-access-jobs-rubynow-com/48109 "2005-11-16T19:57:43Z")

</div>

I’ve been unable to access jobs.rubynow.com http://jobs.rubynow.com for the past week or so. I talked to my ISP and apparently it seems like our IPs are getting blocked for some reason. We emailed their hosting provi…

---

## [Rubycocoa error "No such file to load -- tcltklib (LoadError](https://www.ruby-forum.com/t/rubycocoa-error-no-such-file-to-load-tcltklib-loaderror/48080)

<div class="topic-metadata">

**Author:** [@anne](https://www.ruby-forum.com/u/anne)\
**Replies:** 4\
**Last updated:** [November 16, 2005, 7:45pm UTC](https://www.ruby-forum.com/t/rubycocoa-error-no-such-file-to-load-tcltklib-loaderror/48080 "2005-11-16T19:45:41Z")

</div>

I installed tcltk from http://prdownloads.sourceforge.net/tcltkaqua/TclTkAquaBI-8.4.9.0.dmg?download I reinstalled ruby 1.8.3 on mac 10.3 with the option …/configure --enable-pthread --enable-mac-tcltk-framework ruby…

---

## [Interactive shell on windows](https://www.ruby-forum.com/t/interactive-shell-on-windows/48097)

<div class="topic-metadata">

**Author:** [@codecraig](https://www.ruby-forum.com/u/codecraig)\
**Replies:** 7\
**Last updated:** [November 16, 2005, 7:33pm UTC](https://www.ruby-forum.com/t/interactive-shell-on-windows/48097 "2005-11-16T19:33:35Z")

</div>

I downloaded and installed Ruby via the One-Click installer, version 1.8.2-15. So I open a command prompt (on windows xp) and type “ruby”. After typing “ruby” i type, puts “Hello world!” …but I dont see Hello world!…

---

## [London Web Frameworks Evening - Nov 17](https://www.ruby-forum.com/t/london-web-frameworks-evening-nov-17/48108)

<div class="topic-metadata">

**Author:** [@rob.02004](https://www.ruby-forum.com/u/rob.02004)\
**Replies:** 0\
**Last updated:** [November 16, 2005, 7:30pm UTC](https://www.ruby-forum.com/t/london-web-frameworks-evening-nov-17/48108 "2005-11-16T19:30:34Z")

</div>

For those in London it’s allegedly the first ever web frameworks night on Thu Nov 17, 7pm onwards, at the New Cavendish Street campus of Westminster University, with presentations by: Matt Trout - Catalyst Simon Will…

---

## [Ruby-ldap: @sasl\_quiet?](https://www.ruby-forum.com/t/ruby-ldap-sasl-quiet/48098)

<div class="topic-metadata">

**Author:** [@mreed](https://www.ruby-forum.com/u/mreed)\
**Replies:** 0\
**Last updated:** [November 16, 2005, 7:09pm UTC](https://www.ruby-forum.com/t/ruby-ldap-sasl-quiet/48098 "2005-11-16T19:09:27Z")

</div>

Ok, it seems that every time I create an LDAP::Conn object I get this warning. warning: instance variable @sasl\_quiet not initialized So how do I initialize it? I’m getting the warning from the constructor, whic…

---

## [Mod\_ruby Apache2 Accessing POSTed Data More than Once](https://www.ruby-forum.com/t/mod-ruby-apache2-accessing-posted-data-more-than-once/48082)

<div class="topic-metadata">

**Author:** [@rubytalk](https://www.ruby-forum.com/u/rubytalk)\
**Replies:** 1\
**Last updated:** [November 16, 2005, 6:39pm UTC](https://www.ruby-forum.com/t/mod-ruby-apache2-accessing-posted-data-more-than-once/48082 "2005-11-16T18:39:13Z")

</div>

(Moving the below over from mod\_ruby to the larger audience on ruby-talk.) Hi, Our complex custom template system requires a file containing a class called Page. Depending on the particular configuration of a given p…

---

## [Static variable; behaviour in ruby?](https://www.ruby-forum.com/t/static-variable-behaviour-in-ruby/48324)

<div class="topic-metadata">

**Author:** [@hgs](https://www.ruby-forum.com/u/hgs)\
**Replies:** 8\
**Last updated:** [November 16, 2005, 4:14pm UTC](https://www.ruby-forum.com/t/static-variable-behaviour-in-ruby/48324 "2005-11-16T16:14:27Z")

</div>

Any idea how to create or simulate a static variable in ruby? I want to create a variable to hold state between calls of a method, but have the state disappear when the method goes out of scope. I could create it in s…

---

## [The subtleties of const\_missing](https://www.ruby-forum.com/t/the-subtleties-of-const-missing/48042)

<div class="topic-metadata">

**Author:** [@nseckar](https://www.ruby-forum.com/u/nseckar)\
**Replies:** 7\
**Last updated:** [November 16, 2005, 3:44pm UTC](https://www.ruby-forum.com/t/the-subtleties-of-const-missing/48042 "2005-11-16T15:44:17Z")

</div>

Hello all, I’ve run into an issue regarding the use of const\_missing. This issue revolves around the fact that these two cases are supposed to behave differently from each other: irb(main):001:0\> B = 10 irb(main):00…

---

## [RubyGems Index Slow to Update](https://www.ruby-forum.com/t/rubygems-index-slow-to-update/48817)

<div class="topic-metadata">

**Author:** [@james](https://www.ruby-forum.com/u/james)\
**Replies:** 6\
**Last updated:** [November 16, 2005, 3:38pm UTC](https://www.ruby-forum.com/t/rubygems-index-slow-to-update/48817 "2005-11-16T15:38:16Z")

</div>

I uploaded a gem about five hours ago and I’m still not seeing it in queries? About how long should it take the server to pick it up? James Edward G. II

---

## [Re: toplevel namespace justification](https://www.ruby-forum.com/t/re-toplevel-namespace-justification/102485)

<div class="topic-metadata">

**Author:** [@Daniel.Berger](https://www.ruby-forum.com/u/Daniel.Berger)\
**Replies:** 2\
**Last updated:** [November 16, 2005, 3:29pm UTC](https://www.ruby-forum.com/t/re-toplevel-namespace-justification/102485 "2005-11-16T15:29:14Z")

</div>

I think the general rule should be as Kirk says, "keep all of I guess one of the reasons people pollute the toplevel namespace is because they don’t know how to write well-behaved classes that can be pulled up in thi…

---

## [Http io?](https://www.ruby-forum.com/t/http-io/102494)

<div class="topic-metadata">

**Author:** [@hsanson](https://www.ruby-forum.com/u/hsanson)\
**Replies:** 1\
**Last updated:** [November 16, 2005, 11:38am UTC](https://www.ruby-forum.com/t/http-io/102494 "2005-11-16T11:38:49Z")

</div>

I am developing a streaming client in ruby, so far so good… now I am trying to get Net::HTTP to behave like an IO with no luck. I need Net::HTTP to read the headers as it usually does but stop at before reading the b…

---

## [Nested classes](https://www.ruby-forum.com/t/nested-classes/102499)

<div class="topic-metadata">

**Author:** [@groleo](https://www.ruby-forum.com/u/groleo)\
**Replies:** 8\
**Last updated:** [November 16, 2005, 10:35am UTC](https://www.ruby-forum.com/t/nested-classes/102499 "2005-11-16T10:35:22Z")

</div>

hi list. I have the following code: #! /usr/bin/ruby class B def fun\_b p “B” end end class A b = B.new end a = A.new a.b.fun\_b The part that bugs me is this error: ./test.rb:15: undefined method \`b’ for #\<A…

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

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