# Ruby

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

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

---

## [Object#select and method\_missing](https://www.ruby-forum.com/t/object-select-and-method-missing/137867)

<div class="topic-metadata">

**Author:** [@sporkmonger](https://www.ruby-forum.com/u/sporkmonger)\
**Replies:** 13\
**Last updated:** [May 18, 2008, 11:56am UTC](https://www.ruby-forum.com/t/object-select-and-method-missing/137867 "2008-05-18T11:56:57Z")

</div>

class SelectTest def method\_missing(method, \*params, &block) return “Expected Result” if method == :select super end def test\_one self.select() end def test\_two select() end end puts SelectTest.new.test\_one …

---

## [Disable regexp warning](https://www.ruby-forum.com/t/disable-regexp-warning/137475)

<div class="topic-metadata">

**Author:** [@gazoduc](https://www.ruby-forum.com/u/gazoduc)\
**Replies:** 7\
**Last updated:** [May 18, 2008, 9:59am UTC](https://www.ruby-forum.com/t/disable-regexp-warning/137475 "2008-05-18T09:59:18Z")

</div>

Hi there ! Is there a way to disable regexp warning ? I want to do this: begin re = /#{str}/ rescue invalid regexp return “invalid regexp #{str.inspect}” end without having tons of messages printed on stderr. An…

---

## [Ruby for web without rails](https://www.ruby-forum.com/t/ruby-for-web-without-rails/137816)

<div class="topic-metadata">

**Author:** [@di3go](https://www.ruby-forum.com/u/di3go)\
**Replies:** 10\
**Last updated:** [May 18, 2008, 6:20am UTC](https://www.ruby-forum.com/t/ruby-for-web-without-rails/137816 "2008-05-18T06:20:12Z")

</div>

I dont really like frameworks, i tryed to work with rails and i didnt like, i tryed ramaze too, its nicer then rails to me but still isnt what im looking for, have any way to make web apps in ruby like we do in php? p…

---

## [Socket#recv into a buffer](https://www.ruby-forum.com/t/socket-recv-into-a-buffer/137863)

<div class="topic-metadata">

**Author:** [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Replies:** 1\
**Last updated:** [May 18, 2008, 6:19am UTC](https://www.ruby-forum.com/t/socket-recv-into-a-buffer/137863 "2008-05-18T06:19:07Z")

</div>

Is there any reason why Socket#recv can’t take an optional buffer argument the way IO#read does? Otherwise, Socket#recv is always allocating strings, hence burdening GC. I saw about a 20% improvement by using #read in…

---

## [Where in the world is Shugo Maeda?](https://www.ruby-forum.com/t/where-in-the-world-is-shugo-maeda/137848)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 1\
**Last updated:** [May 18, 2008, 6:06am UTC](https://www.ruby-forum.com/t/where-in-the-world-is-shugo-maeda/137848 "2008-05-18T06:06:38Z")

</div>

Hi Fellow Rubyists, I’ve recently been trying to contact the maintainer of mod\_ruby, Shugo Maeda, to offer my assistance with maintenance and hosting for the mod\_ruby project since modruby.net and the subversion repos…

---

## [6th batch of FORPC101-6C starts 5th July](https://www.ruby-forum.com/t/6th-batch-of-forpc101-6c-starts-5th-july/137910)

<div class="topic-metadata">

**Author:** [@indianguru](https://www.ruby-forum.com/u/indianguru)\
**Replies:** 3\
**Last updated:** [May 18, 2008, 5:49am UTC](https://www.ruby-forum.com/t/6th-batch-of-forpc101-6c-starts-5th-july/137910 "2008-05-18T05:49:40Z")

</div>

The 6th batch of the Free Online Ruby P.ming Course (FORPC101-6C) starts on 5th July 2008. Registrations are now open. Already over 4000 participants have undergone this course. Thanks, Satish T.

---

## [Re: Not quite getting it](https://www.ruby-forum.com/t/re-not-quite-getting-it/137909)

<div class="topic-metadata">

**Author:** [@McLaughlinS\_James\_T](https://www.ruby-forum.com/u/McLaughlinS_James_T)\
**Replies:** 0\
**Last updated:** [May 18, 2008, 4:42am UTC](https://www.ruby-forum.com/t/re-not-quite-getting-it/137909 "2008-05-18T04:42:27Z")

</div>

This was a really excellent reply regarding the ruby ‘feel’. Saving this one. Sorry for the toppost. Jamie McLaughlin SAIC Office: 703-292-6307 Mobile: 571-263-2528 ----- Original Message ----- From: removed\_emai…

---

## [About win32ole problem](https://www.ruby-forum.com/t/about-win32ole-problem/132733)

<div class="topic-metadata">

**Author:** [@kernzhang](https://www.ruby-forum.com/u/kernzhang)\
**Replies:** 1\
**Last updated:** [May 18, 2008, 1:37am UTC](https://www.ruby-forum.com/t/about-win32ole-problem/132733 "2008-05-18T01:37:45Z")

</div>

I use win32ole function call testdirector client api in ruby.system show error,but it’s correct when i use the same function in vbscripts.please help me check it!Thanks a Lot! \[vbscripts\] Private Function SendAttachm…

---

## [Pulling a class from a ruby file](https://www.ruby-forum.com/t/pulling-a-class-from-a-ruby-file/137830)

<div class="topic-metadata">

**Author:** [@twdev](https://www.ruby-forum.com/u/twdev)\
**Replies:** 4\
**Last updated:** [May 18, 2008, 1:27am UTC](https://www.ruby-forum.com/t/pulling-a-class-from-a-ruby-file/137830 "2008-05-18T01:27:31Z")

</div>

I have a single ruby file, consisting of a class definition, and some code outside the class. Our tech lead wants this keep all this in a single file. I also have a unit test in a seperate ruby file which tests the cl…

---

## [DBI ADO problem](https://www.ruby-forum.com/t/dbi-ado-problem/50277)

<div class="topic-metadata">

**Author:** [@marke](https://www.ruby-forum.com/u/marke)\
**Replies:** 1\
**Last updated:** [May 18, 2008, 1:24am UTC](https://www.ruby-forum.com/t/dbi-ado-problem/50277 "2008-05-18T01:24:57Z")

</div>

I was wondering if this exception thrown by my use of DBI ADO is meaningful to anyone? c:/ruby/lib/ruby/site\_ruby/1.8/DBD/ADO/ADO.rb:141:in finish': undefined methodFields’ for nil:NilClass (NoMethodError) from c:/r…

---

## [Hex to decimal?](https://www.ruby-forum.com/t/hex-to-decimal/137896)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 8\
**Last updated:** [May 17, 2008, 11:00pm UTC](https://www.ruby-forum.com/t/hex-to-decimal/137896 "2008-05-17T23:00:24Z")

</div>

Since nobody else has any Ruby to talk about today… :slight\_smile: My gut feel is that this should be 2 or 3 lines of code but for some reason I’m missing the trick. I need a script that converts pairs of hex digits i…

---

## [Ruby classes and \<\< Syntax](https://www.ruby-forum.com/t/ruby-classes-and-syntax/137833)

<div class="topic-metadata">

**Author:** [@Christoph\_S](https://www.ruby-forum.com/u/Christoph_S)\
**Replies:** 3\
**Last updated:** [May 17, 2008, 4:07pm UTC](https://www.ruby-forum.com/t/ruby-classes-and-syntax/137833 "2008-05-17T16:07:20Z")

</div>

I have written a simple snippet of code and would appreciate any help with understanding what’s really going on. Creating Basic Class class Person # Same as: class Person \< Object attr\_accessor :firstname attr\_access…

---

## [Toward MSpec](https://www.ruby-forum.com/t/toward-mspec/137859)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 3\
**Last updated:** [May 17, 2008, 3:15pm UTC](https://www.ruby-forum.com/t/toward-mspec/137859 "2008-05-17T15:15:34Z")

</div>

Just the end of the week update. I haven’t been as active these last few months due to Cleveland Day of .NET planning, but that’s this Saturday so hopefully soon I can get back in full swing. Right now I’m playing …

---

## [REXML XPath bug?](https://www.ruby-forum.com/t/rexml-xpath-bug/137634)

<div class="topic-metadata">

**Author:** [@andywatts](https://www.ruby-forum.com/u/andywatts)\
**Replies:** 1\
**Last updated:** [May 17, 2008, 11:41am UTC](https://www.ruby-forum.com/t/rexml-xpath-bug/137634 "2008-05-17T11:41:05Z")

</div>

I’m having trouble with a particular XPATH in REXML and would greatly appreciate any help. Given this simple document… xxx yyy The xpath “//div\[@class=‘summary’\]/following-sibling::div/span” is failing to return …

---

## [Memory leak by Array#sort!](https://www.ruby-forum.com/t/memory-leak-by-array-sort/137785)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 3\
**Last updated:** [May 17, 2008, 6:58am UTC](https://www.ruby-forum.com/t/memory-leak-by-array-sort/137785 "2008-05-17T06:58:12Z")

</div>

e$B0J2\<$N$h$&$K!"e(BArray#sort! e$B$NCf$GG\[Ns$rJQ99$9$k$H%a%b$j%j!\<%/$7$^$9!#e(B % ./ruby -ve ’ loop { ary = (1…100).to\_a ary.sort! {|a,b| ary\[0\] = “a”; a \<=\> b} GC.start puts File.read("/proc/#{$$}/status").lines…

---

## [Using lambda in class\_eval](https://www.ruby-forum.com/t/using-lambda-in-class-eval/137873)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 0\
**Last updated:** [May 17, 2008, 6:14am UTC](https://www.ruby-forum.com/t/using-lambda-in-class-eval/137873 "2008-05-17T06:14:21Z")

</div>

Hi All, I’m looking to do something like: def test(name, proc) class\_eval(\<\<-EOS, FILE, LINE) def #{name}\_string=(str) # do stuff, whatever self.#{name} = proc.call(str) end EOS end and I want to call it like e…

---

## [Cannot link Java class com.sun.jna.NativeLibrary (NameError)](https://www.ruby-forum.com/t/cannot-link-java-class-com-sun-jna-nativelibrary-nameerror/137872)

<div class="topic-metadata">

**Author:** [@lennylmiller](https://www.ruby-forum.com/u/lennylmiller)\
**Replies:** 0\
**Last updated:** [May 17, 2008, 6:13am UTC](https://www.ruby-forum.com/t/cannot-link-java-class-com-sun-jna-nativelibrary-nameerror/137872 "2008-05-17T06:13:13Z")

</div>

This isn’t directly an issue with JRuby, but I’m going to post here since I ran into this issue using JNA through JRuby(so easy) and I just want to get this out there in the hopes it will save somebody some time. I h…

---

## [NKF Platform Dependencies & Mono](https://www.ruby-forum.com/t/nkf-platform-dependencies-mono/137871)

<div class="topic-metadata">

**Author:** [@diabolist](https://www.ruby-forum.com/u/diabolist)\
**Replies:** 0\
**Last updated:** [May 17, 2008, 5:56am UTC](https://www.ruby-forum.com/t/nkf-platform-dependencies-mono/137871 "2008-05-17T05:56:51Z")

</div>

Hi All, I’ve got NKF up and running and passing the (very few) standard unit tests that come with it. I’ve got a problem however. My implementation currently relies on the Win32 platform API DetectInputCodepage to …

---

## [Monkey Patching (definition)?](https://www.ruby-forum.com/t/monkey-patching-definition/137837)

<div class="topic-metadata">

**Author:** [@Christoph\_S](https://www.ruby-forum.com/u/Christoph_S)\
**Replies:** 11\
**Last updated:** [May 17, 2008, 5:55am UTC](https://www.ruby-forum.com/t/monkey-patching-definition/137837 "2008-05-17T05:55:40Z")

</div>

For example. Look the following piece of simple Ruby Code: class ExampleClass def some\_instance\_method ‘Called some\_instace\_method!’ end end def ExampleClass.i\_am\_a\_class\_method ‘Called i\_am\_a\_class\_method!’ end …

---

## [Invoking jruby from jruby with -J option](https://www.ruby-forum.com/t/invoking-jruby-from-jruby-with-j-option/137842)

<div class="topic-metadata">

**Author:** [@lennylmiller](https://www.ruby-forum.com/u/lennylmiller)\
**Replies:** 3\
**Last updated:** [May 17, 2008, 5:34am UTC](https://www.ruby-forum.com/t/invoking-jruby-from-jruby-with-j-option/137842 "2008-05-17T05:34:38Z")

</div>

I’ve run into a problem from within a rakefile when attempting to run another jruby script with -J-D options. I was able to narrow down the following simple case. jruby -e “exec %(jruby -J-Djava.io.tmpdir=. --propert…

---

## [Code Review: RubyLibs](https://www.ruby-forum.com/t/code-review-rubylibs/137868)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [May 17, 2008, 4:23am UTC](https://www.ruby-forum.com/t/code-review-rubylibs/137868 "2008-05-17T04:23:54Z")

</div>

tfpt review /shelveset:RubyLibs;REDMOND\\tomat Enables reopening of classes and modules defined in a C# library. Comments out extension type on RubyModule - CLR interop needs to be better designed first. Merges type t…

---

## [Matz: can we have rescue/else/ensure available in all blocks?](https://www.ruby-forum.com/t/matz-can-we-have-rescue-else-ensure-available-in-all-blocks/137752)

<div class="topic-metadata">

**Author:** [@coderrr](https://www.ruby-forum.com/u/coderrr)\
**Replies:** 11\
**Last updated:** [May 17, 2008, 3:41am UTC](https://www.ruby-forum.com/t/matz-can-we-have-rescue-else-ensure-available-in-all-blocks/137752 "2008-05-17T03:41:14Z")

</div>

Hi Matz, I recently posted a Ruby 1.9 wishlist (http://groups.google.com/group/ ruby-talk-google/browse\_thread/thread/d771ffa9fe10b811/ c8b5b0b02bd1e2d4) and the #1 item was to have rescue/else/ensure available in al…

---

## [Activerecord status with r110](https://www.ruby-forum.com/t/activerecord-status-with-r110/137844)

<div class="topic-metadata">

**Author:** [@Brian\_Blackwell](https://www.ruby-forum.com/u/Brian_Blackwell)\
**Replies:** 2\
**Last updated:** [May 17, 2008, 2:02am UTC](https://www.ruby-forum.com/t/activerecord-status-with-r110/137844 "2008-05-17T02:02:59Z")

</div>

As a supplement to Wayne’s work with “gems setup.rb”, here is a quick status update with “require ‘active\_record’” with r110. The following bugs or unimplemented features are currently blocking active\_record from load…

---

## [Speaking of free books](https://www.ruby-forum.com/t/speaking-of-free-books/137840)

<div class="topic-metadata">

**Author:** [@Phillip\_G](https://www.ruby-forum.com/u/Phillip_G)\
**Replies:** 6\
**Last updated:** [May 17, 2008, 1:55am UTC](https://www.ruby-forum.com/t/speaking-of-free-books/137840 "2008-05-17T01:55:22Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Are there any plans to release Programming Ruby 2nd Edition as a free ebook, akin to the 1st Edition, once the 3rd Edition hits the stores (or some time after that)? Tha…

---

## [Easy way to use "self" in Proc](https://www.ruby-forum.com/t/easy-way-to-use-self-in-proc/137864)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 5\
**Last updated:** [May 17, 2008, 1:43am UTC](https://www.ruby-forum.com/t/easy-way-to-use-self-in-proc/137864 "2008-05-17T01:43:46Z")

</div>

Hi all, I have this piece of code: http://pastie.caboo.se/198524 I’m trying to use the “self” context of the instanciated class in the Proc. I’ve got it working now, but isn’t there a nicer way to use the Proc.new() …

---

## [\[ANN\] Radiant 0.6.7 "Mordant" Release](https://www.ruby-forum.com/t/ann-radiant-0-6-7-mordant-release/137858)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 0\
**Last updated:** [May 16, 2008, 10:59pm UTC](https://www.ruby-forum.com/t/ann-radiant-0-6-7-mordant-release/137858 "2008-05-16T22:59:55Z")

</div>

Looks like it’s time for another release of Radiant: http://radiantcms.org/download/ Radiant 0.6.7 “Mordant” resolves several security holes and includes enhancements for developers. CSRF attacks are now partly mitig…

---

## [Newbie questions](https://www.ruby-forum.com/t/newbie-questions/137829)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 7\
**Last updated:** [May 16, 2008, 10:28pm UTC](https://www.ruby-forum.com/t/newbie-questions/137829 "2008-05-16T22:28:28Z")

</div>

I feel like we need a Forum called, “Ruby N.” for people like me. Is there one? I am hoping someone could help me with the following (probably) simple questions (my nested questions are surrounded by \*\*): Someone sa…

---

## [Bug reports - can you please include where you found them?](https://www.ruby-forum.com/t/bug-reports-can-you-please-include-where-you-found-them/137853)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 0\
**Last updated:** [May 16, 2008, 10:27pm UTC](https://www.ruby-forum.com/t/bug-reports-can-you-please-include-where-you-found-them/137853 "2008-05-16T22:27:53Z")

</div>

We’re trying to reduce the amount of work that we need to do before RailsConf, so if you’re submitting bugs, can you please tell us where you found them? IOW bugs that aren’t on the critical path towards Rails will be…

---

## [MiniExiftool 0.6.0 released](https://www.ruby-forum.com/t/miniexiftool-0-6-0-released/137847)

<div class="topic-metadata">

**Author:** [@janfoeh](https://www.ruby-forum.com/u/janfoeh)\
**Replies:** 0\
**Last updated:** [May 16, 2008, 9:30pm UTC](https://www.ruby-forum.com/t/miniexiftool-0-6-0-released/137847 "2008-05-16T21:30:50Z")

</div>

MiniExiftool version 0.6.0 released! http://miniexiftool.rubyforge.org/ MiniExiftool is a wrapper library for the Exiftool command-line application (www.sno.phy.queensu.ca/~phil/exiftool/) written by Phil Harvay. One…

---

## [The Turing Machine (#162)](https://www.ruby-forum.com/t/the-turing-machine-162/137734)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 4\
**Last updated:** [May 16, 2008, 9:16pm UTC](https://www.ruby-forum.com/t/the-turing-machine-162/137734 "2008-05-16T21:16:42Z")

</div>

While waiting for 48 hours to pass, several examples of Turing Machine code were sent in, including one example of over 1,500 lines, generated by code. Most others were simpler, handcrafted rulesets and tapes, dealing…

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

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