# Ruby

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

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

---

## [Nil can have instance variables assigned](https://www.ruby-forum.com/t/nil-can-have-instance-variables-assigned/66747)

<div class="topic-metadata">

**Author:** [@stephanwehner](https://www.ruby-forum.com/u/stephanwehner)\
**Replies:** 2\
**Last updated:** [August 29, 2006, 12:00am UTC](https://www.ruby-forum.com/t/nil-can-have-instance-variables-assigned/66747 "2006-08-29T00:00:58Z")

</div>

We traced a bug in some Ruby code back to it being possible to add instance variables to the nil object. irb irb(main):001:0\> nil.instance\_variable\_set(:@okidoki, ‘the value of okidoki’) =\> “the value of okidoki” ir…

---

## [Pathname2 1.5.1](https://www.ruby-forum.com/t/pathname2-1-5-1/66752)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [August 28, 2006, 11:46pm UTC](https://www.ruby-forum.com/t/pathname2-1-5-1/66752 "2006-08-28T23:46:55Z")

</div>

Hi all, I’m happy to announce the release of pathname2 1.5.1. What is it? An alternate implementation of the Pathname class. What’s new? This release adds the Kernel#pn method as a shortcut for Pathname.new, as well …

---

## [Need - macros feature](https://www.ruby-forum.com/t/need-macros-feature/65330)

<div class="topic-metadata">

**Author:** [@henrys](https://www.ruby-forum.com/u/henrys)\
**Replies:** 14\
**Last updated:** [August 28, 2006, 11:34pm UTC](https://www.ruby-forum.com/t/need-macros-feature/65330 "2006-08-28T23:34:52Z")

</div>

Dear Ruby gurus: Are there Ruby macro features as a part of Ruby standard? I want them to work with ANY editor or interactive environment and with ANY OS Why? Because it is distracting to key-in: def a1 @a1 end …

---

## [XLib (specifically, the swig xlib wrapper)](https://www.ruby-forum.com/t/xlib-specifically-the-swig-xlib-wrapper/66348)

<div class="topic-metadata">

**Author:** [@Axis\_S](https://www.ruby-forum.com/u/Axis_S)\
**Replies:** 2\
**Last updated:** [August 28, 2006, 11:02pm UTC](https://www.ruby-forum.com/t/xlib-specifically-the-swig-xlib-wrapper/66348 "2006-08-28T23:02:33Z")

</div>

I want to write a window manager in Ruby (or at least, write some sort of prototype to learn how they are made) but all the Xlib bindings available are years old and/or incomplete. One project, however, uses SWIG and …

---

## [Ruby Reports 0.5.0](https://www.ruby-forum.com/t/ruby-reports-0-5-0/66735)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [August 28, 2006, 10:18pm UTC](https://www.ruby-forum.com/t/ruby-reports-0-5-0/66735 "2006-08-28T22:18:25Z")

</div>

= Ruport 0.5.0 Release, the “One Year Anniversery” edition = == What is Ruport? == Ruby Reports is a software library that aims to make the task of reporting less tedious and painful. It provides tools for data acqui…

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229069)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [August 28, 2006, 10:18pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229069 "2006-08-28T22:18:25Z")

</div>

Begin forwarded message:

---

## [Reformat Ruby source code in vim?](https://www.ruby-forum.com/t/reformat-ruby-source-code-in-vim/66646)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 13\
**Last updated:** [August 28, 2006, 9:46pm UTC](https://www.ruby-forum.com/t/reformat-ruby-source-code-in-vim/66646 "2006-08-28T21:46:20Z")

</div>

I’m in the process of converting to vim from emacs to help save my hands. I’m using the excellent vim-ruby gem to syntax color my code. One thing that I haven’t figured out how to do yet in vim is reformatting source …

---

## [Environmental variables in Ruby 1.8.5](https://www.ruby-forum.com/t/environmental-variables-in-ruby-1-8-5/66719)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 4\
**Last updated:** [August 28, 2006, 7:31pm UTC](https://www.ruby-forum.com/t/environmental-variables-in-ruby-1-8-5/66719 "2006-08-28T19:31:56Z")

</div>

I get: irb(main):001:0\> ENV.keys.size =\> 15 irb(main):002:0\> ENV.keys\[0…14\] =\> \[“TERM\_PROGRAM”, “TERM”, “SHELL”, “CLICOLOR”, “TERM\_PROGRAM\_VERSION”, “USER”, “\_\_CF\_USER\_TEXT\_ENCODING”, “PATH”, “RI”, “PWD”, “SHLVL”, …

---

## [Fwd: Please Forward-Ruby Quiz Submission #92](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission-92/66720)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [August 28, 2006, 7:25pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission-92/66720 "2006-08-28T19:25:53Z")

</div>

Begin forwarded message:

---

## [Constants and const\_get](https://www.ruby-forum.com/t/constants-and-const-get/66629)

<div class="topic-metadata">

**Author:** [@tim-hunter](https://www.ruby-forum.com/u/tim-hunter)\
**Replies:** 4\
**Last updated:** [August 28, 2006, 7:13pm UTC](https://www.ruby-forum.com/t/constants-and-const-get/66629 "2006-08-28T19:13:42Z")

</div>

Given module Foo A = 1 B = 2 end Imagine there’s a huge list of constants defined in Foo instead of just 2. I want to freeze all the constants in Foo, so I add this: module Foo A = 1 B = 2 constants.each {|c| …

---

## [{Spam?} PatchServer 0.2a](https://www.ruby-forum.com/t/spam-patchserver-0-2a/66594)

<div class="topic-metadata">

**Author:** [@Esteban\_Manchado\_SS](https://www.ruby-forum.com/u/Esteban_Manchado_SS)\
**Replies:** 3\
**Last updated:** [August 28, 2006, 6:55pm UTC](https://www.ruby-forum.com/t/spam-patchserver-0-2a/66594 "2006-08-28T18:55:33Z")

</div>

Hi all, Do you write patches for different programs? Don't you know where to put them in so it’s actually easy to view the interesting ones? Does it bother you not knowing which ones are already applied upstream, o…

---

## [Why Ruby does not nead an ide](https://www.ruby-forum.com/t/why-ruby-does-not-nead-an-ide/66482)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 70\
**Last updated:** [August 28, 2006, 6:21pm UTC](https://www.ruby-forum.com/t/why-ruby-does-not-nead-an-ide/66482 "2006-08-28T18:21:24Z")

</div>

1: ruby is an efisiont clean languige that is digsined to minamize boilerplate code 2: lets say you have an array of strings and you want to find all strigs that maches a patern and print them space seperated i = %…

---

## [Readline and StringIO](https://www.ruby-forum.com/t/readline-and-stringio/66619)

<div class="topic-metadata">

**Author:** [@rue](https://www.ruby-forum.com/u/rue)\
**Replies:** 8\
**Last updated:** [August 28, 2006, 5:23pm UTC](https://www.ruby-forum.com/t/readline-and-stringio/66619 "2006-08-28T17:23:12Z")

</div>

It is currently not possible to substitute $stdout or $stdin with a StringIO when using the Readline library ($stderr seems to be fine) due to a T\_FILE check in readline.c. Can someone come up with a reason why this …

---

## [Newbie : assign a value to a variable](https://www.ruby-forum.com/t/newbie-assign-a-value-to-a-variable/66703)

<div class="topic-metadata">

**Author:** [@budu](https://www.ruby-forum.com/u/budu)\
**Replies:** 21\
**Last updated:** [August 28, 2006, 5:15pm UTC](https://www.ruby-forum.com/t/newbie-assign-a-value-to-a-variable/66703 "2006-08-28T17:15:11Z")

</div>

Hi all! This is really a newbie question… Here is the simple code… if @params\[:per\_page\].nil? per\_page = 20 else per\_page = @params\[:per\_page\] end Is there a better way to do this (put the parameter in the variab…

---

## [\[Solution\] DayRange (#92)](https://www.ruby-forum.com/t/solution-dayrange-92/66707)

<div class="topic-metadata">

**Author:** [@rambor](https://www.ruby-forum.com/u/rambor)\
**Replies:** 0\
**Last updated:** [August 28, 2006, 3:52pm UTC](https://www.ruby-forum.com/t/solution-dayrange-92/66707 "2006-08-28T15:52:58Z")

</div>

Hello, this is my little solution. I created a second one, that’s faster than this, but it looks like C, so I don’t post it. IMHO a cleaner code is more valuable than .3s difference when processing 1M arrays. That do…

---

## [AgileMaryland Codefest Schedule for August/September](https://www.ruby-forum.com/t/agilemaryland-codefest-schedule-for-august-september/66706)

<div class="topic-metadata">

**Author:** [@Jeff\_Waltzer](https://www.ruby-forum.com/u/Jeff_Waltzer)\
**Replies:** 0\
**Last updated:** [August 28, 2006, 3:44pm UTC](https://www.ruby-forum.com/t/agilemaryland-codefest-schedule-for-august-september/66706 "2006-08-28T15:44:54Z")

</div>

Us AgileMaryland folks are still coding away at our podcast feed reader using the Ruby language. We are willing to have anyone join us that is willing to learn about Ruby and to learn about Test Driven Development. W…

---

## [South East Michigan Ruby Brigade Meeting](https://www.ruby-forum.com/t/south-east-michigan-ruby-brigade-meeting/66699)

<div class="topic-metadata">

**Author:** [@patrickharlan](https://www.ruby-forum.com/u/patrickharlan)\
**Replies:** 0\
**Last updated:** [August 28, 2006, 3:04pm UTC](https://www.ruby-forum.com/t/south-east-michigan-ruby-brigade-meeting/66699 "2006-08-28T15:04:42Z")

</div>

Location: Library Pub in Novi Proposed Agenda RubyMI\*Conf Recap Reaching out to new users (University Students?) Ruby serial port control - or how to Ruby-ize your Roomba Autotest and Growl Don’t know where the Librar…

---

## [Looking for GDSII ruby library](https://www.ruby-forum.com/t/looking-for-gdsii-ruby-library/66442)

<div class="topic-metadata">

**Author:** [@Vincent\_A](https://www.ruby-forum.com/u/Vincent_A)\
**Replies:** 3\
**Last updated:** [August 28, 2006, 1:48pm UTC](https://www.ruby-forum.com/t/looking-for-gdsii-ruby-library/66442 "2006-08-28T13:48:34Z")

</div>

Hello, I am looking for Dan White’s e-mail who wrote GDSII Ruby library (http://rubyforge.org/projects/gdsii/) to ask him some questions about its application. Has anybody used it and could answer my questions ? Vin…

---

## [Mailing list Software](https://www.ruby-forum.com/t/mailing-list-software/66689)

<div class="topic-metadata">

**Author:** [@Willem\_H](https://www.ruby-forum.com/u/Willem_H)\
**Replies:** 0\
**Last updated:** [August 28, 2006, 1:36pm UTC](https://www.ruby-forum.com/t/mailing-list-software/66689 "2006-08-28T13:36:33Z")

</div>

Not Ruby related but i would like to know what Mailing list software would you recommend, currently i have a box running php 4/mysql 5/opensuse 10

---

## [Fun with setter functions](https://www.ruby-forum.com/t/fun-with-setter-functions/66492)

<div class="topic-metadata">

**Author:** [@olbrich](https://www.ruby-forum.com/u/olbrich)\
**Replies:** 2\
**Last updated:** [August 28, 2006, 11:12am UTC](https://www.ruby-forum.com/t/fun-with-setter-functions/66492 "2006-08-28T11:12:19Z")

</div>

I have a setter function in a class that I would like to pass additional arguments to, so I can do some addtional calculations if required. My first crack at this was to do something like… … def variable=(value, opti…

---

## [Passing blocks around in a C extension](https://www.ruby-forum.com/t/passing-blocks-around-in-a-c-extension/66602)

<div class="topic-metadata">

**Author:** [@reflex](https://www.ruby-forum.com/u/reflex)\
**Replies:** 3\
**Last updated:** [August 28, 2006, 10:24am UTC](https://www.ruby-forum.com/t/passing-blocks-around-in-a-c-extension/66602 "2006-08-28T10:24:16Z")

</div>

Hi I’m trying to wrap up a library, and one of its functions accepts a callback function as an argument. What I want to do is to make the function exported to ruby accept a block, and yield this block on the callback…

---

## [Rails Workshop in Pune, Sept 1-2, 2006](https://www.ruby-forum.com/t/rails-workshop-in-pune-sept-1-2-2006/66659)

<div class="topic-metadata">

**Author:** [@pratik](https://www.ruby-forum.com/u/pratik)\
**Replies:** 0\
**Last updated:** [August 28, 2006, 10:00am UTC](https://www.ruby-forum.com/t/rails-workshop-in-pune-sept-1-2-2006/66659 "2006-08-28T10:00:12Z")

</div>

Subject: Rails Workshop in Pune, Sept 1-2, 2006 You might be interested in attenting this upcoming Rails workshop on the 1st and 2nd Sept. It is being hosted by Shashank D., a Ruby & Rails veteran and Dibya P., who …

---

## [Detecting when an object's instance variables are modified](https://www.ruby-forum.com/t/detecting-when-an-objects-instance-variables-are-modified/66616)

<div class="topic-metadata">

**Author:** [@paul-au](https://www.ruby-forum.com/u/paul-au)\
**Replies:** 8\
**Last updated:** [August 28, 2006, 7:50am UTC](https://www.ruby-forum.com/t/detecting-when-an-objects-instance-variables-are-modified/66616 "2006-08-28T07:50:03Z")

</div>

Hi, I have a whole load of objects which I would like to periodically dump as YAML. However, in order to save on resources, I would prefer to only dump those whose instance variables have changed since the last dump. …

---

## [Ruby-VPI 6.3.0](https://www.ruby-forum.com/t/ruby-vpi-6-3-0/66638)

<div class="topic-metadata">

**Author:** [@Suraj\_NSKurapati](https://www.ruby-forum.com/u/Suraj_NSKurapati)\
**Replies:** 0\
**Last updated:** [August 28, 2006, 4:19am UTC](https://www.ruby-forum.com/t/ruby-vpi-6-3-0/66638 "2006-08-28T04:19:45Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Version 6.3.0 (2006-08-27) Ruby-VPI is a Ruby interface to Verilog VPI. It lets you create complex Verilog test benches easily and wholly in Ruby. Web site: http://ruby…

---

## [Progress Reports?](https://www.ruby-forum.com/t/progress-reports/66064)

<div class="topic-metadata">

**Author:** [@kdclark](https://www.ruby-forum.com/u/kdclark)\
**Replies:** 4\
**Last updated:** [August 28, 2006, 4:01am UTC](https://www.ruby-forum.com/t/progress-reports/66064 "2006-08-28T04:01:45Z")

</div>

Hi guys, I was curious how the other GSoC projects worked out. I’ve seen announcements for Ariel and Ruport which appear to be doing well. Florian said that Rudebug is almost ready. What about the others?

---

## [Defining a method with default arguments in C](https://www.ruby-forum.com/t/defining-a-method-with-default-arguments-in-c/66612)

<div class="topic-metadata">

**Author:** [@bct](https://www.ruby-forum.com/u/bct)\
**Replies:** 2\
**Last updated:** [August 28, 2006, 2:37am UTC](https://www.ruby-forum.com/t/defining-a-method-with-default-arguments-in-c/66612 "2006-08-28T02:37:41Z")

</div>

Hello, How can I define a default argument value such as the following in c? def foobar(arg=1) end Thanks, Brian T.

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229101)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [August 28, 2006, 2:09am UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229101 "2006-08-28T02:09:37Z")

</div>

Begin forwarded message:

---

## [Mem leak without add\_heap()?](https://www.ruby-forum.com/t/mem-leak-without-add-heap/66625)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 28, 2006, 2:05am UTC](https://www.ruby-forum.com/t/mem-leak-without-add-heap/66625 "2006-08-28T02:05:35Z")

</div>

Okay. I went and did a little simple hacking on a 1.8.4 instance of Ruby to simply output to stdout some debugging info for various GC/memory related actions. Using the info I gathered from that, I tuned a real appl…

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229103)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [August 28, 2006, 2:05am UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229103 "2006-08-28T02:05:35Z")

</div>

Begin forwarded message:

---

## [Ruby In Steel Manual now online](https://www.ruby-forum.com/t/ruby-in-steel-manual-now-online/66614)

<div class="topic-metadata">

**Author:** [@huw](https://www.ruby-forum.com/u/huw)\
**Replies:** 0\
**Last updated:** [August 27, 2006, 10:21pm UTC](https://www.ruby-forum.com/t/ruby-in-steel-manual-now-online/66614 "2006-08-27T22:21:13Z")

</div>

Ruby In Steel users may like to know that we have now put together all the essential documentation on using Ruby In Steel in the form of an illustrated PDF eBook (500K). This covers installation, a 5 minute beginner’…

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

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