# Ruby

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

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

---

## [How to unset a hash member?](https://www.ruby-forum.com/t/how-to-unset-a-hash-member/96897)

<div class="topic-metadata">

**Author:** [@iseng](https://www.ruby-forum.com/u/iseng)\
**Replies:** 4\
**Last updated:** [July 3, 2006, 10:28am UTC](https://www.ruby-forum.com/t/how-to-unset-a-hash-member/96897 "2006-07-03T10:28:21Z")

</div>

how do i unset a hash member (as in php)? h\[‘a’\] = ‘aaa’ h\[‘b’\] = ‘bbb’ h\[‘c’\] = ‘ccc’ h \>\> { ‘a’ =\> ‘aaa’, ‘b’ =\> ‘bbb’, ‘c’ =\> ‘ccc’ } something like this: h\[‘b’\].delete h \>\> { ‘a’ =\> ‘aaa’, ‘c’ =\> ‘ccc’ } not …

---

## [1.8 test-all failed](https://www.ruby-forum.com/t/1-8-test-all-failed/96887)

<div class="topic-metadata">

**Author:** [@URABE\_Shyouhei](https://www.ruby-forum.com/u/URABE_Shyouhei)\
**Replies:** 3\
**Last updated:** [July 3, 2006, 7:23am UTC](https://www.ruby-forum.com/t/1-8-test-all-failed/96887 "2006-07-03T07:23:08Z")

</div>

e$BKNIt$G$9!#:G6a!"KNIt$Ne(Bautobuilde$B$Ge(Btest-alle$B$,\<:GT$7$F$$$^$9!#e(B e$B%m%0$r8+$k$He(B : test.rb finished env ./ruby test/runner.rb dyld: ./ruby Undefined symbols: \_PW\_GID2VAL e$B$H$J$C$F$$j!"$I$&$d$ie(Be…

---

## [IO.popen("echo a") clear O\_APPEND of other fds](https://www.ruby-forum.com/t/io-popen-echo-a-clear-o-append-of-other-fds/96848)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 7\
**Last updated:** [July 3, 2006, 4:39am UTC](https://www.ruby-forum.com/t/io-popen-echo-a-clear-o-append-of-other-fds/96848 "2006-07-03T04:39:04Z")

</div>

e$B0J2\<$N$h$&$K!"e(BIO.popen(“echo a”) e$B$,4X78$J$$B\>$Ne(B IO e$B$Ne(B O\_APPEND e$B$r\>C$7$F$7$^$&$h$&$G$9!#e(B % ./ruby -rfcntl -ve ’ p File::APPEND.to\_s(16) open(“z”, File::RDWR|File::APPEND|File::TRUNC|File::CREAT…

---

## [Is a block converted to a Proc object before yield?](https://www.ruby-forum.com/t/is-a-block-converted-to-a-proc-object-before-yield/96569)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 11\
**Last updated:** [July 3, 2006, 3:16am UTC](https://www.ruby-forum.com/t/is-a-block-converted-to-a-proc-object-before-yield/96569 "2006-07-03T03:16:52Z")

</div>

Hello! As you know, in Ruby, a block is not an object for some reasons, one of which is performance. def f yield end def g &blk blk.call end In g, a block is explicitly converted to a Proc object. What about in…

---

## [Win32ole copying excel sheets](https://www.ruby-forum.com/t/win32ole-copying-excel-sheets/96870)

<div class="topic-metadata">

**Author:** [@railsroad](https://www.ruby-forum.com/u/railsroad)\
**Replies:** 4\
**Last updated:** [July 3, 2006, 1:56am UTC](https://www.ruby-forum.com/t/win32ole-copying-excel-sheets/96870 "2006-07-03T01:56:33Z")

</div>

Hi, I’m am trying to write a Ruby script that copies a worksheet from one Excel workbook to another. Does anyone know where there is some documentation on the specifically for the Excel Object Model for win32ole. N…

---

## [ANN: InfoQ Ruby Community "unlaunched"](https://www.ruby-forum.com/t/ann-infoq-ruby-community-unlaunched/61644)

<div class="topic-metadata">

**Author:** [@Obie\_F](https://www.ruby-forum.com/u/Obie_F)\
**Replies:** 13\
**Last updated:** [July 3, 2006, 1:38am UTC](https://www.ruby-forum.com/t/ann-infoq-ruby-community-unlaunched/61644 "2006-07-03T01:38:04Z")

</div>

InfoQ was “unlaunched” last week, (meaning we’re still doing some final bug-fixing), but you should still check it out and see all the good stuff we have so far. Exclusive video interviews with DHH, David Black and ot…

---

## [Irb loaded constants](https://www.ruby-forum.com/t/irb-loaded-constants/96873)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 0\
**Last updated:** [July 3, 2006, 12:38am UTC](https://www.ruby-forum.com/t/irb-loaded-constants/96873 "2006-07-03T00:38:26Z")

</div>

…When irb loads it somehow initializes all kinds of cool constants like $:, $LOAD\_PATH, $LOADED-FEATURES ETC…where could i get info on all of these things…the picaxe has some $… but not all $ENGLISH stuff…and to all t…

---

## [Rake tasks for Trac?](https://www.ruby-forum.com/t/rake-tasks-for-trac/96281)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 6\
**Last updated:** [July 3, 2006, 12:12am UTC](https://www.ruby-forum.com/t/rake-tasks-for-trac/96281 "2006-07-03T00:12:07Z")

</div>

Before I reinvent too many wheels, has anyone cooked up, or know about, handy Rake tasks for interacting with Trac? Thanks! (BTW, I did a Google of “Ruby Rake task cookbook”, and was surprised not to find a Rake task…

---

## [How to open a console and ruby a ruby script from ruby?](https://www.ruby-forum.com/t/how-to-open-a-console-and-ruby-a-ruby-script-from-ruby/96775)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 11\
**Last updated:** [July 2, 2006, 9:28pm UTC](https://www.ruby-forum.com/t/how-to-open-a-console-and-ruby-a-ruby-script-from-ruby/96775 "2006-07-02T21:28:52Z")

</div>

I know I can do system “ruby script.rb” But I want to open a console to run it in. Thanks. T

---

## [Ruby Compiler Error Message](https://www.ruby-forum.com/t/ruby-compiler-error-message/96846)

<div class="topic-metadata">

**Author:** [@Akiduki\_Rindow](https://www.ruby-forum.com/u/Akiduki_Rindow)\
**Replies:** 3\
**Last updated:** [July 2, 2006, 8:20pm UTC](https://www.ruby-forum.com/t/ruby-compiler-error-message/96846 "2006-07-02T20:20:56Z")

</div>

e$B5$$K$J$C$?$N$GEj9F$5$;$F$$$?$@$-$^$9!%e(B e$BHs\>o$K4VH4$1$J%3!\<%I$J$N$G$9$,!$e(B class Hoge @a @@pee=0 def initialize(s) @a=s end def Hoge.foo p @a @@pee+=1 end end t = Hoge.new(“bar”) Hoge.foo #=\>nil e…

---

## ["\\b".dump](https://www.ruby-forum.com/t/b-dump/96851)

<div class="topic-metadata">

**Author:** [@Tadayoshi\_F](https://www.ruby-forum.com/u/Tadayoshi_F)\
**Replies:** 1\
**Last updated:** [July 2, 2006, 6:17pm UTC](https://www.ruby-forum.com/t/b-dump/96851 "2006-07-02T18:17:58Z")

</div>

e$B$U$J$P$G$9!#e(B “\\b”.{dump,inspect} e$B$,e(B ‘"\\b"’ e$B$K$J$i$J$$$N$O!“2?$+0UL#$,$”$k$N$G$7$g$&e(B e$B$+!#e(B “\\a\\b\\e\\f\\n\\r\\s\\t\\v”.dump #=\> “”\\a\\010\\e\\f\\n\\r \\t\\v"" “\\a\\b\\e\\f\\n\\r\\s\\t\\v”.inspect #=\> “”\\a\\010\\e\\f…

---

## [Help please](https://www.ruby-forum.com/t/help-please/96746)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 13\
**Last updated:** [July 2, 2006, 3:34pm UTC](https://www.ruby-forum.com/t/help-please/96746 "2006-07-02T15:34:13Z")

</div>

Recently I asked here about where “end” goes, in relation to code blocks. I was given some good answers which helped but now either I’m having a same / similar problem or this is perhaps something completely differen…

---

## [Racc on ruby 1.9](https://www.ruby-forum.com/t/racc-on-ruby-1-9/55350)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [July 2, 2006, 12:35pm UTC](https://www.ruby-forum.com/t/racc-on-ruby-1-9/55350 "2006-07-02T12:35:41Z")

</div>

e$B$U$H5$$,$D$$$?$s$G$9$,!"e(Bracc e$B$,e(B ruby 1.9 e$B$GF0$+$J$$$h$&$J5$$,$7$^$9!#e(B % cvs -d :pserver:removed\_email\_address@domain.invalid:/src co racc % cd racc % ruby setup.rb … % cd sample % racc -ocalc.rb …

---

## [Debian packaging policy](https://www.ruby-forum.com/t/debian-packaging-policy/96080)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 12\
**Last updated:** [July 2, 2006, 9:29am UTC](https://www.ruby-forum.com/t/debian-packaging-policy/96080 "2006-07-02T09:29:43Z")

</div>

Looking over the Debian Ruby Policy. If you’re interested, a good jumping point is here: http://pkg-ruby-extras.alioth.debian.org/policy.html According to the policy 3rd-party packages are installed directly into /u…

---

## [\<1\> expected but was \<17\>](https://www.ruby-forum.com/t/1-expected-but-was-17/96785)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [July 2, 2006, 1:55am UTC](https://www.ruby-forum.com/t/1-expected-but-was-17/96785 "2006-07-02T01:55:24Z")

</div>

boron e$B$G0J2\<$N$h$&$J\<:GT$,5/$-$F$$$^$9!#e(B Failure: test\_get\_\_break(TestNetHTTP\_v1\_2) \[/home/akr/chkbuild/tmp/build/ruby-trunk/ruby/test/net/http/test\_http.rb:85\]: \<1\> expected but was \<17\>. Failure: test\_…

---

## [Ruby-GNOME2-0.15.0](https://www.ruby-forum.com/t/ruby-gnome2-0-15-0/96778)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 0\
**Last updated:** [July 1, 2006, 9:23pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-0-15-0/96778 "2006-07-01T21:23:41Z")

</div>

Hi, Ruby-GNOME2-0.15.0 is out. Enjoy! Highlights Added Ruby/VTE VTE is a terminal emulator widget used by GNOME terminal. http://www.gnome.org/ Added Ruby/Poppler Poppler is a PDF rendering library based on th…

---

## [Symbol#to\_proc is just so beautiful](https://www.ruby-forum.com/t/symbol-to-proc-is-just-so-beautiful/58218)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 20\
**Last updated:** [July 1, 2006, 6:33pm UTC](https://www.ruby-forum.com/t/symbol-to-proc-is-just-so-beautiful/58218 "2006-07-01T18:33:54Z")

</div>

When is this ever getting into Ruby Core? class Symbol def to\_proc proc{|obj| obj.send(self) } end end Consider this: class Numeric def positive? self \> 0 end end \[1, 2, 3\].all? &:positive? =\> true \[-1, 2, …

---

## [B = binding; b.eval("xxx")](https://www.ruby-forum.com/t/b-binding-b-eval-xxx/96597)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 3\
**Last updated:** [July 1, 2006, 5:42pm UTC](https://www.ruby-forum.com/t/b-binding-b-eval-xxx/96597 "2006-07-01T17:42:08Z")

</div>

e$B0J2\<$N$h$&$K$9$k$HMn$A$^$9!#e(B % ./ruby -ve ’ b = binding b.eval(“xxx”)’ ruby 1.9.0 (2006-06-29) \[i686-linux\] zsh: segmentation fault (core dumped) ./ruby -ve ’ b = binding b.eval(“xxx”)’ % gdb ruby core GNU…

---

## [Summer of code: ruby-breakpoint GUI client](https://www.ruby-forum.com/t/summer-of-code-ruby-breakpoint-gui-client/96402)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [July 1, 2006, 3:50pm UTC](https://www.ruby-forum.com/t/summer-of-code-ruby-breakpoint-gui-client/96402 "2006-07-01T15:50:55Z")

</div>

I just noticed this project (went to the summer of code while looking in to mkmf). I was wondering how it’s coming along? Reading up on it, it seems like a great deal of the project intention is to be able to visualis…

---

## [Regex Comparison Causing Massive Memory Usage](https://www.ruby-forum.com/t/regex-comparison-causing-massive-memory-usage/96121)

<div class="topic-metadata">

**Author:** [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Replies:** 7\
**Last updated:** [July 1, 2006, 3:44pm UTC](https://www.ruby-forum.com/t/regex-comparison-causing-massive-memory-usage/96121 "2006-07-01T15:44:33Z")

</div>

Has anyone run into a problem where a regex comparison against a very large string causes memory usage to massively and rapidly spike upwards. A string of length ~200000 causes memory usage to reach and exceed 2 gigs…

---

## [License of IRB?](https://www.ruby-forum.com/t/license-of-irb/96753)

<div class="topic-metadata">

**Author:** [@llothar](https://www.ruby-forum.com/u/llothar)\
**Replies:** 1\
**Last updated:** [July 1, 2006, 3:29pm UTC](https://www.ruby-forum.com/t/license-of-irb/96753 "2006-07-01T15:29:03Z")

</div>

Hello ruby-talk, Which license is used for IRB ?

---

## [Java to Ruby](https://www.ruby-forum.com/t/java-to-ruby/96736)

<div class="topic-metadata">

**Author:** [@indianguru](https://www.ruby-forum.com/u/indianguru)\
**Replies:** 4\
**Last updated:** [July 1, 2006, 3:22pm UTC](https://www.ruby-forum.com/t/java-to-ruby/96736 "2006-07-01T15:22:00Z")

</div>

Is there any site that lists out the similarities and differences between Java and Ruby? Thanks,

---

## [Na\_str-0.0.0 : combining narray with mmap for persistant num](https://www.ruby-forum.com/t/na-str-0-0-0-combining-narray-with-mmap-for-persistant-num/96286)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [July 1, 2006, 3:16pm UTC](https://www.ruby-forum.com/t/na-str-0-0-0-combining-narray-with-mmap-for-persistant-num/96286 "2006-07-01T15:16:35Z")

</div>

NAME na\_str (c extension) nmap (reference ruby class which combines narray and mmap) URIS http://codeforpeople.com/lib/ruby/na\_str/ SYNOPSIS na\_str is designed to allow data sharing between narray object and other…

---

## [Differences between irb and ruby](https://www.ruby-forum.com/t/differences-between-irb-and-ruby/96727)

<div class="topic-metadata">

**Author:** [@pool007](https://www.ruby-forum.com/u/pool007)\
**Replies:** 7\
**Last updated:** [July 1, 2006, 1:17pm UTC](https://www.ruby-forum.com/t/differences-between-irb-and-ruby/96727 "2006-07-01T13:17:12Z")

</div>

Hi list. I’ve recently learned that irb and ruby (ruby interpreter) behave differently often and that irb is not running on ruby interpreter. As an example, \[mkseo@uranus src\]$ irb irb(main):001:0\> def foo irb(mai…

---

## [Can require 'date' be used in irb](https://www.ruby-forum.com/t/can-require-date-be-used-in-irb/96720)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 4\
**Last updated:** [July 1, 2006, 7:47am UTC](https://www.ruby-forum.com/t/can-require-date-be-used-in-irb/96720 "2006-07-01T07:47:11Z")

</div>

i get a lot of errors when i require ‘date’ in irb what’s wrong =\> \[“c:/ruby/lib/ruby/site\_ruby/1.8”, “c:/ruby/lib/ruby/site\_ruby/1.8/i386-ms t”, “c:/ruby/lib/ruby/site\_ruby”, “c:/ruby/lib/ruby/1.8”, “c:/ruby/lib/rub…

---

## [Taking Control of Un-handled Exceptions](https://www.ruby-forum.com/t/taking-control-of-un-handled-exceptions/96725)

<div class="topic-metadata">

**Author:** [@rooster](https://www.ruby-forum.com/u/rooster)\
**Replies:** 1\
**Last updated:** [July 1, 2006, 7:43am UTC](https://www.ruby-forum.com/t/taking-control-of-un-handled-exceptions/96725 "2006-07-01T07:43:59Z")

</div>

Greetings, I’m trying to catch all un-handled exceptions. I’m having problems handling the RoutingError and UnknownAction exceptions. I’ve added the following to my application controller as a protected method: def…

---

## [Problem with gems, Windows, C extension](https://www.ruby-forum.com/t/problem-with-gems-windows-c-extension/96726)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [July 1, 2006, 3:33am UTC](https://www.ruby-forum.com/t/problem-with-gems-windows-c-extension/96726 "2006-07-01T03:33:33Z")

</div>

Hi all, Ruby 1.8.4 (one click) gems 0.9.0 I’ve got a C extension that I’m trying to install via gems on my Windows box called ‘net-proto’. I can build and install the gem locally with no problem. However, when I …

---

## [Mkrf 0.1.0 released](https://www.ruby-forum.com/t/mkrf-0-1-0-released/96373)

<div class="topic-metadata">

**Author:** [@kdclark](https://www.ruby-forum.com/u/kdclark)\
**Replies:** 9\
**Last updated:** [July 1, 2006, 3:30am UTC](https://www.ruby-forum.com/t/mkrf-0-1-0-released/96373 "2006-07-01T03:30:20Z")

</div>

I’m pleased to announce that tonight marks the first release of mkrf, a library which generates Rakefiles to build C extensions to Ruby and is aimed at a replacement for mkmf. This is a Ruby Summer of Code project (ht…

---

## [Puzzled?](https://www.ruby-forum.com/t/puzzled/96723)

<div class="topic-metadata">

**Author:** [@vcivelek](https://www.ruby-forum.com/u/vcivelek)\
**Replies:** 1\
**Last updated:** [July 1, 2006, 3:18am UTC](https://www.ruby-forum.com/t/puzzled/96723 "2006-07-01T03:18:09Z")

</div>

Hi, I have a question… Why the below snippet, \[“foo”,“bar”,“baz”\].each do |s| m = /^ba(.\*?)$/.match(s) puts m\[0\] end gives the following error? test.rb:8: undefined method \`\[\]’ for nil:NilClass (NoMethodError) R…

---

## [Re: Reflection brakes encapsulation](https://www.ruby-forum.com/t/re-reflection-brakes-encapsulation/96721)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [July 1, 2006, 2:16am UTC](https://www.ruby-forum.com/t/re-reflection-brakes-encapsulation/96721 "2006-07-01T02:16:59Z")

</div>

\-----Original Message----- From: David P. \[mailto:removed\_email\_address@domain.invalid\] Sent: Friday, June 30, 2006 11:57 AM To: ruby-talk ML Subject: Re: Reflection brakes encapsulation The same reflection issues …

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

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