# Ruby

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

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

---

## [Method access to the enclosing method's locals?](https://www.ruby-forum.com/t/method-access-to-the-enclosing-methods-locals/112336)

<div class="topic-metadata">

**Author:** [@ldk2005](https://www.ruby-forum.com/u/ldk2005)\
**Replies:** 17\
**Last updated:** [August 23, 2007, 2:22pm UTC](https://www.ruby-forum.com/t/method-access-to-the-enclosing-methods-locals/112336 "2007-08-23T14:22:31Z")

</div>

Hi, How can a method gain access to the enclosing method’s locals? def go2(arg) def hi puts “Hi #{arg}!” end a={:h =\> :hi} send(a\[:h\]) end go2 ‘Larry’ ==\>\> NameError: undefined local variable or method \`arg’ for …

---

## [TclTK, images](https://www.ruby-forum.com/t/tcltk-images/112789)

<div class="topic-metadata">

**Author:** [@aflatter](https://www.ruby-forum.com/u/aflatter)\
**Replies:** 1\
**Last updated:** [August 23, 2007, 11:48am UTC](https://www.ruby-forum.com/t/tcltk-images/112789 "2007-08-23T11:48:07Z")

</div>

hi, I need to include bitmaps in my Tk-project. I wonder what method I have to use. Can that be done by label-\>image… or is there a special method? My bitmap also should be able to change color. I read that label-\>i…

---

## [A, a = 1, 2](https://www.ruby-forum.com/t/a-a-1-2/112498)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 11\
**Last updated:** [August 23, 2007, 9:16am UTC](https://www.ruby-forum.com/t/a-a-1-2/112498 "2007-08-23T09:16:49Z")

</div>

e$B$U$H5$$,$D$$$?$s$G$9$,!"e(Ba, a = 1, 2 e$B$H$9$k$H!"e(B1.8 e$B$He(B 1.9 e$B$Ge(B e$B5sF0$,0c$&$h$&$G$9!#0U?^$5$l$?$3$H$G$7$g$&$+!#e(B % ./ruby -ve ‘a, a = 1, 2; p a’ ruby 1.9.0 (2007-08-19 patchlevel 0) \[i686-linu…

---

## [ANN: Sequel 0.1.9.10 Released](https://www.ruby-forum.com/t/ann-sequel-0-1-9-10-released/112786)

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 0\
**Last updated:** [August 23, 2007, 7:45am UTC](https://www.ruby-forum.com/t/ann-sequel-0-1-9-10-released/112786 "2007-08-23T07:45:54Z")

</div>

Sequel version 0.1.9.10 has just been released. This release includes a number of bug fixes a minor improvements. Here’s the CHANGELOG: Changed schema generation code to generate separate statements for CREATE TABLE…

---

## [Library for investigating database schemas?](https://www.ruby-forum.com/t/library-for-investigating-database-schemas/112478)

<div class="topic-metadata">

**Author:** [@Mario\_TSL](https://www.ruby-forum.com/u/Mario_TSL)\
**Replies:** 2\
**Last updated:** [August 23, 2007, 6:45am UTC](https://www.ruby-forum.com/t/library-for-investigating-database-schemas/112478 "2007-08-23T06:45:50Z")

</div>

I’m wondering what libraries are available for accessing the most comprehensive information for a database schema. In particular, I want information on: columns per table foreign keys column constraints (uniqueness,…

---

## [Scripting rubyforge sftp interaction](https://www.ruby-forum.com/t/scripting-rubyforge-sftp-interaction/112780)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 0\
**Last updated:** [August 23, 2007, 6:20am UTC](https://www.ruby-forum.com/t/scripting-rubyforge-sftp-interaction/112780 "2007-08-23T06:20:46Z")

</div>

Hi, Instead of using a static sftp batchfile, I’d like to use Ruby to motor around in rubyforge. However, I can’t even get a session connected, e.g., require ‘rubygems’ require ‘net/sftp’ Net::SFTP.start(‘rubyforg…

---

## [Mac help with rubygems](https://www.ruby-forum.com/t/mac-help-with-rubygems/103286)

<div class="topic-metadata">

**Author:** [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Replies:** 3\
**Last updated:** [August 23, 2007, 4:05am UTC](https://www.ruby-forum.com/t/mac-help-with-rubygems/103286 "2007-08-23T04:05:33Z")

</div>

Hi, I’m trying to expand my horizons by learning to do some dev work on an iMac that I inherited from a co-worker. My understanding of Mac OS is fairly described as infantile; I think of Mac OS as a really pretty ver…

---

## [Is there a real thing that can convert ruby scripts to c cod](https://www.ruby-forum.com/t/is-there-a-real-thing-that-can-convert-ruby-scripts-to-c-cod/112698)

<div class="topic-metadata">

**Author:** [@Magicloud\_M](https://www.ruby-forum.com/u/Magicloud_M)\
**Replies:** 4\
**Last updated:** [August 23, 2007, 3:29am UTC](https://www.ruby-forum.com/t/is-there-a-real-thing-that-can-convert-ruby-scripts-to-c-cod/112698 "2007-08-23T03:29:36Z")

</div>

Dear all, As I read ruby’s code, I think it is possible to convert ruby scripts to c codes. But I searched on www.rubyforge.org, and got two tools which do not do real convertion. By real convertion, I mean to use c …

---

## [{|(a,a)|}](https://www.ruby-forum.com/t/a-a/112451)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 5\
**Last updated:** [August 23, 2007, 2:21am UTC](https://www.ruby-forum.com/t/a-a/112451 "2007-08-23T02:21:33Z")

</div>

e$B0J2\<$,%(%i!\<$K$J$j$^$;$s!#e(B % ./ruby -vce ‘m() {|(a,a)|}’ ruby 1.9.0 (2007-08-19 patchlevel 0) \[i686-linux\] Syntax OK duplicated argument name e$B$G$O$J$$$G$7$g$&$+!#e(B % ./ruby -vce ‘m() {|a,a|}’ ruby 1.9.0 …

---

## [Process Rings (#135)](https://www.ruby-forum.com/t/process-rings-135/112324)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 9\
**Last updated:** [August 23, 2007, 1:30am UTC](https://www.ruby-forum.com/t/process-rings-135/112324 "2007-08-23T01:30:29Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [Catch without a tag argument](https://www.ruby-forum.com/t/catch-without-a-tag-argument/112732)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 2\
**Last updated:** [August 23, 2007, 1:04am UTC](https://www.ruby-forum.com/t/catch-without-a-tag-argument/112732 "2007-08-23T01:04:28Z")

</div>

matzruby e$B$K$"$k!"0z?t$J$7$Ge(B catch e$B$,8F$Y$k5!G=$Oe(B 1.9 e$B$K$OF~e(B e$B$i$J$$$N$G$7$g$&$+!#e(B % ./ruby -ve ‘p catch {|t| throw t, 1 }’ ruby 1.9.0 (2007-04-20 patchlevel 0) \[i686-linux\] - matz 1 % ./ruby …

---

## [How +:symbol is parsed](https://www.ruby-forum.com/t/how-symbol-is-parsed/112533)

<div class="topic-metadata">

**Author:** [@Victor\_SZverokSS\_Sh](https://www.ruby-forum.com/u/Victor_SZverokSS_Sh)\
**Replies:** 4\
**Last updated:** [August 23, 2007, 12:53am UTC](https://www.ruby-forum.com/t/how-symbol-is-parsed/112533 "2007-08-23T00:53:27Z")

</div>

Hi. I wanted to be evil and add my own custom semantics to +:some\_symbol constructs. But I’ve found such consctructs doesn’t call Symbol#+@, while +(:some\_symbol) does call. I can suppose it’s reason of numbers cons…

---

## [Test/win32ole](https://www.ruby-forum.com/t/test-win32ole/112634)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 8\
**Last updated:** [August 22, 2007, 11:49pm UTC](https://www.ruby-forum.com/t/test-win32ole/112634 "2007-08-22T23:49:21Z")

</div>

e$B!!$5$5$@$G$9!%e(B e$B!!e(Bmswin32 e$B$G$Ne(B test/win32ole e$B$,\<B9TCf$K0\[\>o=\*N;$9$k$N$G$9$,!$$I$J$+e(B e$B$??4Ev$?$j$O$"$j$^$9$G$7$g$&$+!%e(B test\_invokeverb(TestInvokeVerb): E test\_ole\_methods(TestMyDict): . …

---

## [How to be cool with map](https://www.ruby-forum.com/t/how-to-be-cool-with-map/112744)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 8\
**Last updated:** [August 22, 2007, 11:36pm UTC](https://www.ruby-forum.com/t/how-to-be-cool-with-map/112744 "2007-08-22T23:36:20Z")

</div>

So I’ve got this file-checking script: def check ok = true for\_every\_app do |app,app\_info| ok = File.exists?(app\_info\[:root\]) end ok end And it has a bug, which is that if it evaluates a good file after a bad fi…

---

## [Wxruby and rubygems seems not to work?](https://www.ruby-forum.com/t/wxruby-and-rubygems-seems-not-to-work/112737)

<div class="topic-metadata">

**Author:** [@kazaam](https://www.ruby-forum.com/u/kazaam)\
**Replies:** 6\
**Last updated:** [August 22, 2007, 10:44pm UTC](https://www.ruby-forum.com/t/wxruby-and-rubygems-seems-not-to-work/112737 "2007-08-22T22:44:10Z")

</div>

Like here: http://wxruby.rubyforge.org/wiki/wiki.pl?Installation suggested I installed wxruby2 on my linux machine with: sudo gem install wxruby2-preview Then I tried this sample: http://wxruby.rubyforge.org/wiki/wik…

---

## [Shoes?](https://www.ruby-forum.com/t/shoes/112746)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 3\
**Last updated:** [August 22, 2007, 10:32pm UTC](https://www.ruby-forum.com/t/shoes/112746 "2007-08-22T22:32:09Z")

</div>

Has anyone come across a decent set of docs, or even class/method list for shoes? I’ve tried joining the ML for it, but never got a response, so I can’t even ask on it yet. –Kyle

---

## [Can the self object be changed inside a Proc?](https://www.ruby-forum.com/t/can-the-self-object-be-changed-inside-a-proc/112747)

<div class="topic-metadata">

**Author:** [@emmanueloga](https://www.ruby-forum.com/u/emmanueloga)\
**Replies:** 1\
**Last updated:** [August 22, 2007, 10:01pm UTC](https://www.ruby-forum.com/t/can-the-self-object-be-changed-inside-a-proc/112747 "2007-08-22T22:01:05Z")

</div>

Hello, basically i want to change the self object inside a proc so i can do a thing like this: the\_proc= lambda { @variable } class Test1 def initialize proc @variable= 1 # Here i need to bind somehow the proc to t…

---

## [Filling cells in grid by type](https://www.ruby-forum.com/t/filling-cells-in-grid-by-type/112729)

<div class="topic-metadata">

**Author:** [@tillaart36](https://www.ruby-forum.com/u/tillaart36)\
**Replies:** 2\
**Last updated:** [August 22, 2007, 8:38pm UTC](https://www.ruby-forum.com/t/filling-cells-in-grid-by-type/112729 "2007-08-22T20:38:05Z")

</div>

Hi all… I have a question i wanted to ask. I have a ruby file which represents a piece of land which has to be developed by different types of land-uses. For the moment the program does make a grid like structure of 2…

---

## [Ruby off the Rails](https://www.ruby-forum.com/t/ruby-off-the-rails/112633)

<div class="topic-metadata">

**Author:** [@celldee](https://www.ruby-forum.com/u/celldee)\
**Replies:** 11\
**Last updated:** [August 22, 2007, 7:56pm UTC](https://www.ruby-forum.com/t/ruby-off-the-rails/112633 "2007-08-22T19:56:52Z")

</div>

I did a quick search on jobserve.com for ‘ruby’. I got 60 hits, most of which were unsurprisingly asking for RoR developers. I did another search for ‘perl’ and got 958 hits. While I am very pleased that RoR is being …

---

## [TCPSocket Flushing](https://www.ruby-forum.com/t/tcpsocket-flushing/111897)

<div class="topic-metadata">

**Author:** [@neko18](https://www.ruby-forum.com/u/neko18)\
**Replies:** 12\
**Last updated:** [August 22, 2007, 6:57pm UTC](https://www.ruby-forum.com/t/tcpsocket-flushing/111897 "2007-08-22T18:57:03Z")

</div>

I have two programs, a server and a client. I want to send two messages to the client when the client connects to the server, with a delay in between. However, both messages seem to arrive at the client at the same ti…

---

## [Ruby/Tk and rubyscript2exe problem](https://www.ruby-forum.com/t/ruby-tk-and-rubyscript2exe-problem/112684)

<div class="topic-metadata">

**Author:** [@Brian\_Vernarsky](https://www.ruby-forum.com/u/Brian_Vernarsky)\
**Replies:** 2\
**Last updated:** [August 22, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/ruby-tk-and-rubyscript2exe-problem/112684 "2007-08-22T17:41:43Z")

</div>

Hello, I am trying to compile a standalone exe file from a program that I have written using ruby/tk. It runs completely fine from the command line, but when I try to compile it I get the a message stating that there…

---

## [Run ruby application with params](https://www.ruby-forum.com/t/run-ruby-application-with-params/112713)

<div class="topic-metadata">

**Author:** [@gugui](https://www.ruby-forum.com/u/gugui)\
**Replies:** 4\
**Last updated:** [August 22, 2007, 5:26pm UTC](https://www.ruby-forum.com/t/run-ruby-application-with-params/112713 "2007-08-22T17:26:42Z")

</div>

Hi, i need to run an aplication and send a param with it like $ ruby application.rb -param\_here Is it possible ? how to receive this param\_here in the ruby application ? thanks any help

---

## [Fun with RACC examples](https://www.ruby-forum.com/t/fun-with-racc-examples/112378)

<div class="topic-metadata">

**Author:** [@barjunk](https://www.ruby-forum.com/u/barjunk)\
**Replies:** 3\
**Last updated:** [August 22, 2007, 4:55pm UTC](https://www.ruby-forum.com/t/fun-with-racc-examples/112378 "2007-08-22T16:55:35Z")

</div>

I’ve been browsing the Pragmatic Programmer book and was taken by the “learn something new” statement. Since parsers have always been interesting to me, I decided on racc. I put together a sample that I found on cmill…

---

## [Fwd: Solution for RubyQuiz 131](https://www.ruby-forum.com/t/fwd-solution-for-rubyquiz-131/112723)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [August 22, 2007, 4:34pm UTC](https://www.ruby-forum.com/t/fwd-solution-for-rubyquiz-131/112723 "2007-08-22T16:34:33Z")

</div>

Begin forwarded message:

---

## [How to "cast" in Ruby](https://www.ruby-forum.com/t/how-to-cast-in-ruby/112616)

<div class="topic-metadata">

**Author:** [@sirtyman](https://www.ruby-forum.com/u/sirtyman)\
**Replies:** 14\
**Last updated:** [August 22, 2007, 4:23pm UTC](https://www.ruby-forum.com/t/how-to-cast-in-ruby/112616 "2007-08-22T16:23:29Z")

</div>

Hi, I need to know how to “cast” ruby objects on another i.e. arr = Array.new() doc = REXML::Document.new(grListXML) doc.elements.each("\*/group") do |el| temp = el.elements\[“id”\].get\_text arr \<\< temp end I want t…

---

## [Call an application from Ruby](https://www.ruby-forum.com/t/call-an-application-from-ruby/112711)

<div class="topic-metadata">

**Author:** [@gugui](https://www.ruby-forum.com/u/gugui)\
**Replies:** 2\
**Last updated:** [August 22, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/call-an-application-from-ruby/112711 "2007-08-22T16:16:27Z")

</div>

Hi all, how to call an application from Ruby inside on Linux ? IÂ´d like to run ‘KCalc’ for example thank any help

---

## [ANN: Iowa Ruby Brigade](https://www.ruby-forum.com/t/ann-iowa-ruby-brigade/112720)

<div class="topic-metadata">

**Author:** [@David\_WSBody](https://www.ruby-forum.com/u/David_WSBody)\
**Replies:** 0\
**Last updated:** [August 22, 2007, 3:32pm UTC](https://www.ruby-forum.com/t/ann-iowa-ruby-brigade/112720 "2007-08-22T15:32:22Z")

</div>

Iowa Ruby Brigade First Meeting Thursday, September 20, 2007 6:00 PM - 7:30 PM DMACC West Campus 5959 Grand Avenue West Des Moines, IA Topics: Organizational Meeting Getting Started With Ruby For more informati…

---

## [Benchmark of loops](https://www.ruby-forum.com/t/benchmark-of-loops/112719)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 0\
**Last updated:** [August 22, 2007, 3:27pm UTC](https://www.ruby-forum.com/t/benchmark-of-loops/112719 "2007-08-22T15:27:21Z")

</div>

e$B!!$5$5$@$G$9!%e(B e$B!!e(BVMware e$B\>e$G$9$,!$%k!\<%W$K$D$$$F%Y%s%A%^!\<%/$r\<h$C$F$\_$?$N$G$4Js9pe(B e$B$G$9!%e(B e$B!!$5$9$,$K!$%M%$%F%#%V$K\<BAu$7$?e(B generator e$B$OB.$$$J$!!$$G$b$d$C$Q$je(B e$BIaDL$N%k!\<%W$h$j$…

---

## [How to dump contents of an array as parameters](https://www.ruby-forum.com/t/how-to-dump-contents-of-an-array-as-parameters/112708)

<div class="topic-metadata">

**Author:** [@akifusenet](https://www.ruby-forum.com/u/akifusenet)\
**Replies:** 3\
**Last updated:** [August 22, 2007, 3:01pm UTC](https://www.ruby-forum.com/t/how-to-dump-contents-of-an-array-as-parameters/112708 "2007-08-22T15:01:16Z")

</div>

Hi Ä± am a beginner Rubyist and I have a small problem. Track=Struct.new(:name,:surname) #This works perfectly tempTrack=Track.new(15,“b”) p tempTrack.name p tempTrack.surname But I want to create a temptrack with…

---

## [Splitting Array - DRY](https://www.ruby-forum.com/t/splitting-array-dry/112452)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 6\
**Last updated:** [August 22, 2007, 2:47pm UTC](https://www.ruby-forum.com/t/splitting-array-dry/112452 "2007-08-22T14:47:14Z")

</div>

I am presently splitting an array on 4 successives periods of time , is there a DRYest way to do it, or that’s the way to go ? thanks @ads\_id\_w1 = advertisings.map {|ad| ad.id if ((ad.valid\_until - ad.created\_at) /…

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

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