# Ruby

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

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

---

## [Help with Leopard](https://www.ruby-forum.com/t/help-with-leopard/119760)

<div class="topic-metadata">

**Author:** [@sthorpe](https://www.ruby-forum.com/u/sthorpe)\
**Replies:** 3\
**Last updated:** [November 10, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/help-with-leopard/119760 "2007-11-10T20:01:51Z")

</div>

I am sure this is a basic question but I am having a problem with ruby in leopard. I have installed the gem ar-extensions without any issue. When I run require ‘ar-extensions’ from irb it works fine…but when I write…

---

## [Top-level methods and constants](https://www.ruby-forum.com/t/top-level-methods-and-constants/119801)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 2\
**Last updated:** [November 10, 2007, 6:29pm UTC](https://www.ruby-forum.com/t/top-level-methods-and-constants/119801 "2007-11-10T18:29:36Z")

</div>

A couple of questions regarding the top-level environment of execution. The Pickaxe says on page 376 that top-level methods are defined as private instance methods of Object, whereas Ruby for Rails says on page 203 …

---

## [Local variables, eval, and parsing](https://www.ruby-forum.com/t/local-variables-eval-and-parsing/119623)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 16\
**Last updated:** [November 10, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/local-variables-eval-and-parsing/119623 "2007-11-10T16:38:29Z")

</div>

I read through posts like this http://groups.google.com/group/comp.lang.ruby/browse\_thread/thread/18c16150d26df98e/ee9c34c590b2f316?lnk=st&q=ruby+eval+local\_variables#ee9c34c590b2f316 http://groups.google.com/group/com…

---

## [A question for Matz](https://www.ruby-forum.com/t/a-question-for-matz/119712)

<div class="topic-metadata">

**Author:** [@llinklater](https://www.ruby-forum.com/u/llinklater)\
**Replies:** 8\
**Last updated:** [November 10, 2007, 4:33pm UTC](https://www.ruby-forum.com/t/a-question-for-matz/119712 "2007-11-10T16:33:56Z")

</div>

I have no idea where to ask this so, as Matz posts here, I will ask here. I apologize for any inconvenience. I just saw Black Lagoon and the director of photography is Yukihiro Matsumoto. Could that, by any chance, …

---

## [The problem i'm facing is to create a libary file with binding to ruby on windows platform](https://www.ruby-forum.com/t/the-problem-im-facing-is-to-create-a-libary-file-with-binding-to-ruby-on-windows-platform/119793)

<div class="topic-metadata">

**Author:** [@matan](https://www.ruby-forum.com/u/matan)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 4:05pm UTC](https://www.ruby-forum.com/t/the-problem-im-facing-is-to-create-a-libary-file-with-binding-to-ruby-on-windows-platform/119793 "2007-11-10T16:05:41Z")

</div>

i’v checked about pdflib, and the good news are that you are right and it can be installed locally for a certain rails project, it works when you copy a libary file ("pdflib.so ") into the vendors directory. there are…

---

## [Cape\_town.rb - Inaugural Cape Town Ruby Brigade Meeting](https://www.ruby-forum.com/t/cape-town-rb-inaugural-cape-town-ruby-brigade-meeting/119791)

<div class="topic-metadata">

**Author:** [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 3:46pm UTC](https://www.ruby-forum.com/t/cape-town-rb-inaugural-cape-town-ruby-brigade-meeting/119791 "2007-11-10T15:46:17Z")

</div>

The debut meeting of the Cape Town Ruby Brigade is taking place at 7pm, 14th of November at the Bandwidth Barn (125 Buitengracht Street, Cape Town). Full details available at http://www.capetownrb.org.

---

## [Turning a proc into a method?](https://www.ruby-forum.com/t/turning-a-proc-into-a-method/119774)

<div class="topic-metadata">

**Author:** [@unnali](https://www.ruby-forum.com/u/unnali)\
**Replies:** 2\
**Last updated:** [November 10, 2007, 11:34am UTC](https://www.ruby-forum.com/t/turning-a-proc-into-a-method/119774 "2007-11-10T11:34:15Z")

</div>

Hi all, Any ideas on how to convert a proc into a method? Here’s an example, but… it seems not so great. class Proc def to\_global\_method func = self Kernel.module\_eval { define\_method(:some\_name) { |\*a| func.call …

---

## [Changing class of object foobar](https://www.ruby-forum.com/t/changing-class-of-object-foobar/114062)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 8\
**Last updated:** [November 10, 2007, 10:57am UTC](https://www.ruby-forum.com/t/changing-class-of-object-foobar/114062 "2007-11-10T10:57:22Z")

</div>

Hi Please no “redesign” proposal as in “do not try to do this at all” - I really want to know if the following is possible, and if it is, how. And if it is not, I can’t try anyway and have to rethink/redesign the app…

---

## [Is this file locked?](https://www.ruby-forum.com/t/is-this-file-locked/119763)

<div class="topic-metadata">

**Author:** [@ESMark\_Ping](https://www.ruby-forum.com/u/ESMark_Ping)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 5:40am UTC](https://www.ruby-forum.com/t/is-this-file-locked/119763 "2007-11-10T05:40:41Z")

</div>

Is there an easy ruby way to tell if a file is locked? I can lock a file using File.flock, but I have a file which may have a shared lock and I don’t want to mess with it unless no one else is locking it (and grabbin…

---

## [Snippet - assert\_yin\_yang](https://www.ruby-forum.com/t/snippet-assert-yin-yang/119761)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 4:55am UTC](https://www.ruby-forum.com/t/snippet-assert-yin-yang/119761 "2007-11-10T04:55:43Z")

</div>

Rubies: This is a Rails assertion, but any project could use its concept. It asserts that a Model value is one state before a block, and another state after: def assert\_yin\_yang(object, method, yin, yang, diagnostic …

---

## [Singleton is this easy?](https://www.ruby-forum.com/t/singleton-is-this-easy/119680)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 5\
**Last updated:** [November 10, 2007, 2:57am UTC](https://www.ruby-forum.com/t/singleton-is-this-easy/119680 "2007-11-10T02:57:05Z")

</div>

Is this all that’s required to ensure that there’s ever only one instance of an ArrayOfCreatures? Seems too easy! C:\\code\> C:\\code\> C:\\code\>type Driver.rb require ‘ArrayOfCreatures’ require ‘Dragon’ someCreatures…

---

## [Implementation plan and a string question](https://www.ruby-forum.com/t/implementation-plan-and-a-string-question/119560)

<div class="topic-metadata">

**Author:** [@lee\_c](https://www.ruby-forum.com/u/lee_c)\
**Replies:** 4\
**Last updated:** [November 10, 2007, 2:24am UTC](https://www.ruby-forum.com/t/implementation-plan-and-a-string-question/119560 "2007-11-10T02:24:56Z")

</div>

I’ve been playing with IronRuby a bit today, and I notice that the reflection methods are not yet implemented (e.g. running “”.methods in the interpreter does not produce the expected result). This is not surprising,…

---

## [Odd error](https://www.ruby-forum.com/t/odd-error/119753)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [November 10, 2007, 1:40am UTC](https://www.ruby-forum.com/t/odd-error/119753 "2007-11-10T01:40:28Z")

</div>

irb(main):006:0\> {}.merge {:a =\> 3} SyntaxError: compile error (irb):6: syntax error, unexpected tASSOC, expecting ‘}’ {}.merge {:a =\> 3} ??? {}.merge({:a =\> 3}) works, though. Is this a grammar problem?

---

## [Ruby and PGP bindings that work on MS windows?](https://www.ruby-forum.com/t/ruby-and-pgp-bindings-that-work-on-ms-windows/119657)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 1\
**Last updated:** [November 10, 2007, 12:30am UTC](https://www.ruby-forum.com/t/ruby-and-pgp-bindings-that-work-on-ms-windows/119657 "2007-11-10T00:30:56Z")

</div>

anybody know of ruby interface bindings to PGP that works on the M$ windows platform?..i did a google search and all i got is this list with all the people who had PGP signatures…thanx…dave

---

## [OpenlySociable Micro 0.0.1 released!](https://www.ruby-forum.com/t/openlysociable-micro-0-0-1-released/119752)

<div class="topic-metadata">

**Author:** [@Pradeep\_E](https://www.ruby-forum.com/u/Pradeep_E)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 11:59pm UTC](https://www.ruby-forum.com/t/openlysociable-micro-0-0-1-released/119752 "2007-11-09T23:59:58Z")

</div>

Hello all, Intridea (http://www.intridea.com) has just released ‘OpenlySociable Micro’, which is a clean, simple and concise way of writing OpenSocial widgets. It uses Camping and Mongrel to allow developers to write…

---

## [\[ANN\] Curl::Multi version 0.1](https://www.ruby-forum.com/t/ann-curl-multi-version-0-1/119749)

<div class="topic-metadata">

**Author:** [@krat](https://www.ruby-forum.com/u/krat)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 11:27pm UTC](https://www.ruby-forum.com/t/ann-curl-multi-version-0-1/119749 "2007-11-09T23:27:08Z")

</div>

== Announcing Curl::Multi version 0.1 == This is the first release of Curl::Multi, supporting just the basics. This release uses RubyInline to help with the C interface. == What is Curl::Multi? == Curl::Multi provide…

---

## [Invoke rails model from other ruby files](https://www.ruby-forum.com/t/invoke-rails-model-from-other-ruby-files/119632)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 7\
**Last updated:** [November 9, 2007, 11:11pm UTC](https://www.ruby-forum.com/t/invoke-rails-model-from-other-ruby-files/119632 "2007-11-09T23:11:23Z")

</div>

how can i invoke rails model objects from other non rails ruby objects. do i have to do a require ‘’ or is there a way i can refernce rails enviorument from ruby.

---

## [How to edit a file without loading it all into memory](https://www.ruby-forum.com/t/how-to-edit-a-file-without-loading-it-all-into-memory/119745)

<div class="topic-metadata">

**Author:** [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Replies:** 7\
**Last updated:** [November 9, 2007, 10:42pm UTC](https://www.ruby-forum.com/t/how-to-edit-a-file-without-loading-it-all-into-memory/119745 "2007-11-09T22:42:08Z")

</div>

I need to change the texture paths in maya files. The lines are easy to find with grep, and I’m able to create the new line easily enough, but how can I do this without holding the entire file into memory? The files…

---

## [Information Hiding](https://www.ruby-forum.com/t/information-hiding/119730)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [November 9, 2007, 9:40pm UTC](https://www.ruby-forum.com/t/information-hiding/119730 "2007-11-09T21:40:43Z")

</div>

Hi, I’m quite new to Ruby, so please excuse me if this question is a bit silly. Consider: class Foo def initialize @a = \[\] end def bar§ @a \<\< p end end It’s nice that Ruby returns the last evaluated expressio…

---

## [One click install for XP, not admin, no gems](https://www.ruby-forum.com/t/one-click-install-for-xp-not-admin-no-gems/119666)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 7\
**Last updated:** [November 9, 2007, 9:24pm UTC](https://www.ruby-forum.com/t/one-click-install-for-xp-not-admin-no-gems/119666 "2007-11-09T21:24:30Z")

</div>

I notice this alert when installing Ruby: Please review the ReadMe and License below. You must install as administrator on Windows NT, 2000, and XP in order for path and environment variable settings to take effect. …

---

## [Ruby exception handling](https://www.ruby-forum.com/t/ruby-exception-handling/119698)

<div class="topic-metadata">

**Author:** [@franck](https://www.ruby-forum.com/u/franck)\
**Replies:** 5\
**Last updated:** [November 9, 2007, 9:17pm UTC](https://www.ruby-forum.com/t/ruby-exception-handling/119698 "2007-11-09T21:17:44Z")

</div>

Hi, I am creating a web site using Ruby on Rails and Paypal NVP API. I see in Paypal SDK something like: def nameOfaMethod … rescue … end and I just want to make sure if it is correct. Usually rescue clause is i…

---

## [Quick update on IronRuby status](https://www.ruby-forum.com/t/quick-update-on-ironruby-status/119739)

<div class="topic-metadata">

**Author:** [@John\_LSSDLR](https://www.ruby-forum.com/u/John_LSSDLR)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/quick-update-on-ironruby-status/119739 "2007-11-09T20:46:45Z")

</div>

I know we haven’t pushed out some new sources in a while now. My apologies. We were hacking a lot of things into IronRuby for our RubyConf demo, and we’re now spending the time here to make sure that they’re implement…

---

## ['Class.inherited' v. 'inherited' syntax inside Class](https://www.ruby-forum.com/t/class-inherited-v-inherited-syntax-inside-class/119647)

<div class="topic-metadata">

**Author:** [@7stud](https://www.ruby-forum.com/u/7stud)\
**Replies:** 11\
**Last updated:** [November 9, 2007, 7:45pm UTC](https://www.ruby-forum.com/t/class-inherited-v-inherited-syntax-inside-class/119647 "2007-11-09T19:45:10Z")

</div>

How come when you redefine the inherited method in Class, you don’t use the ‘class method’ syntax? This doesn’t work: class Class def Class.inherited(class\_obj) puts class\_obj puts end end Instead, you have to w…

---

## [Programmers can be humans and nice](https://www.ruby-forum.com/t/programmers-can-be-humans-and-nice/119717)

<div class="topic-metadata">

**Author:** [@pietro\_ferrari](https://www.ruby-forum.com/u/pietro_ferrari)\
**Replies:** 2\
**Last updated:** [November 9, 2007, 7:05pm UTC](https://www.ruby-forum.com/t/programmers-can-be-humans-and-nice/119717 "2007-11-09T19:05:57Z")

</div>

Hello fellow rubyists, I’m sending rough translation of a message posted on the brasilian ruby forum rubyonbr.org. I hope you like it as much as we did. "Good morning to the participants of RubyOnBr. Yesterday I watch…

---

## [Win32console](https://www.ruby-forum.com/t/win32console/119701)

<div class="topic-metadata">

**Author:** [@sirtyman](https://www.ruby-forum.com/u/sirtyman)\
**Replies:** 2\
**Last updated:** [November 9, 2007, 6:02pm UTC](https://www.ruby-forum.com/t/win32console/119701 "2007-11-09T18:02:08Z")

</div>

Hi, I’ve no idea how to install it without VC 6.0. With further version of VC I see following comment: Microsoft ® Program Maintenance Utility Version 8.00.50727.42 Copyright © Microsoft Corporation. All rights rese…

---

## [File 'rb' on non-Windows](https://www.ruby-forum.com/t/file-rb-on-non-windows/119723)

<div class="topic-metadata">

**Author:** [@Jari\_W](https://www.ruby-forum.com/u/Jari_W)\
**Replies:** 4\
**Last updated:** [November 9, 2007, 5:14pm UTC](https://www.ruby-forum.com/t/file-rb-on-non-windows/119723 "2007-11-09T17:14:45Z")

</div>

To open binary files, on Windows the statement: File.new(“myfile”, “rb”) is required. The docs just seem to say that the “b” is a Windows-only thing, not what happens on other platforms. Will the “b” flag just be fil…

---

## [Question about pdf/writer](https://www.ruby-forum.com/t/question-about-pdf-writer/119636)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 5\
**Last updated:** [November 9, 2007, 5:13pm UTC](https://www.ruby-forum.com/t/question-about-pdf-writer/119636 "2007-11-09T17:13:35Z")

</div>

hey there all, i am using ruby to make some pdf charts, but there is also a data table i need to put in there. i am using pdf/writer and so far so good, but i can’t find anywhere that i can change the color of the …

---

## [A problem related string(250 score)](https://www.ruby-forum.com/t/a-problem-related-string-250-score/119510)

<div class="topic-metadata">

**Author:** [@microinsky](https://www.ruby-forum.com/u/microinsky)\
**Replies:** 12\
**Last updated:** [November 9, 2007, 5:00pm UTC](https://www.ruby-forum.com/t/a-problem-related-string-250-score/119510 "2007-11-09T17:00:59Z")

</div>

How to solve this problem in Ruby??? You are given a String disk representing the clusters on a disk. An ‘X’ represents a used cluster, and a ‘.’ represents an available cluster. You are also given an int size represen…

---

## [Ruby on Rails Developer seeking employment](https://www.ruby-forum.com/t/ruby-on-rails-developer-seeking-employment/119725)

<div class="topic-metadata">

**Author:** [@jfletcher](https://www.ruby-forum.com/u/jfletcher)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 4:56pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-developer-seeking-employment/119725 "2007-11-09T16:56:00Z")

</div>

I am a Dallas resident seeking a Ruby on Rails Developer position in the Houston or Dallas area. Feel free to contact me at removed\_email\_address@domain.invalid.

---

## [Win32console help](https://www.ruby-forum.com/t/win32console-help/119705)

<div class="topic-metadata">

**Author:** [@sirtyman](https://www.ruby-forum.com/u/sirtyman)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 12:33pm UTC](https://www.ruby-forum.com/t/win32console-help/119705 "2007-11-09T12:33:42Z")

</div>

Hi, Can anybody know how to use win32console to colorize text in win console. This set contains sets of classes, modules etc and has no convenient documentation. I can’t compile Console.cpp due to lack of VC6 compile…

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

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