# Ruby

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

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

---

## [Generic, non web based templating engine?](https://www.ruby-forum.com/t/generic-non-web-based-templating-engine/48318)

<div class="topic-metadata">

**Author:** [@michael.campbell](https://www.ruby-forum.com/u/michael.campbell)\
**Replies:** 5\
**Last updated:** [November 19, 2005, 5:22pm UTC](https://www.ruby-forum.com/t/generic-non-web-based-templating-engine/48318 "2005-11-19T17:22:41Z")

</div>

Is there a generic templating engine for ruby, a la Freemarker for Java? What I’m looking for is something that can take a ruby “model” (object graph, hashes, lists, etc.), a template, merge the 2 and spit out the re…

---

## [Symbol#inspect bug?](https://www.ruby-forum.com/t/symbol-inspect-bug/48334)

<div class="topic-metadata">

**Author:** [@dbatml](https://www.ruby-forum.com/u/dbatml)\
**Replies:** 15\
**Last updated:** [November 19, 2005, 4:58pm UTC](https://www.ruby-forum.com/t/symbol-inspect-bug/48334 "2005-11-19T16:58:34Z")

</div>

Hallo, Symbol#inspect should return a valid symbol literal, right? But it doesn’t for symbols starting with a digit: irb(main):001:0\> p :“9” :9 =\> nil irb(main):002:0\> :9 SyntaxError: compile error (irb):2: synta…

---

## [Re: Best OS for Ruby Dev/Best OS for Ruby Hosting](https://www.ruby-forum.com/t/re-best-os-for-ruby-dev-best-os-for-ruby-hosting/48359)

<div class="topic-metadata">

**Author:** [@matthew.hivner](https://www.ruby-forum.com/u/matthew.hivner)\
**Replies:** 2\
**Last updated:** [November 19, 2005, 4:34pm UTC](https://www.ruby-forum.com/t/re-best-os-for-ruby-dev-best-os-for-ruby-hosting/48359 "2005-11-19T16:34:23Z")

</div>

The only problem I’ve run into so far on OS X is (and it could be my fault, I’m not sure) terminal.app’s poor handling of ncurses (and thus ruby-ncurses). –matt

---

## [Hash Value Assignment Bug?](https://www.ruby-forum.com/t/hash-value-assignment-bug/48364)

<div class="topic-metadata">

**Author:** [@nshb](https://www.ruby-forum.com/u/nshb)\
**Replies:** 2\
**Last updated:** [November 19, 2005, 2:57pm UTC](https://www.ruby-forum.com/t/hash-value-assignment-bug/48364 "2005-11-19T14:57:32Z")

</div>

I have been trying to build a ACL system, and found what I believe is a bug. result = {“return\_value”=\>nil, “allow”=\>“t”, “id”=\>“1000002”} =\> {“allow”=\>“t”, “return\_value”=\>nil, “id”=\>“1000002”} access = { :acl…

---

## [Snakes and Rubies?](https://www.ruby-forum.com/t/snakes-and-rubies/48231)

<div class="topic-metadata">

**Author:** [@james\_b](https://www.ruby-forum.com/u/james_b)\
**Replies:** 11\
**Last updated:** [November 19, 2005, 2:09pm UTC](https://www.ruby-forum.com/t/snakes-and-rubies/48231 "2005-11-19T14:09:16Z")

</div>

This may be of interest, especially if you live in or near the Windy City. quote: On December 3rd, Ruby and Python developers will gather at DePaul University in Chicago to hear two of the leaders in the Web 2.0 mo…

---

## [Method Definitions](https://www.ruby-forum.com/t/method-definitions/48277)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 9\
**Last updated:** [November 19, 2005, 12:44pm UTC](https://www.ruby-forum.com/t/method-definitions/48277 "2005-11-19T12:44:40Z")

</div>

Just a little curiosity: If method definitions (def foo; end') were to return a symbol representing the method's name (:foo’ in this case) rather than just nil, would this be possible? class Klass private def foo “Kl…

---

## [Ruby/SDL for Mac OS X](https://www.ruby-forum.com/t/ruby-sdl-for-mac-os-x/48351)

<div class="topic-metadata">

**Author:** [@duane.johnson](https://www.ruby-forum.com/u/duane.johnson)\
**Replies:** 0\
**Last updated:** [November 19, 2005, 7:57am UTC](https://www.ruby-forum.com/t/ruby-sdl-for-mac-os-x/48351 "2005-11-19T07:57:54Z")

</div>

For anyone interested in running Ruby/SDL on Mac OS X, I have a walk- through up on my blog: http://inquirylabs.com/blog/?p=21 Ruby/SDL is a binding for the Simple DirectMedia Layer, which is a library that makes 2D …

---

## [Nitro / rayman](https://www.ruby-forum.com/t/nitro-rayman/82931)

<div class="topic-metadata">

**Author:** [@itsme213](https://www.ruby-forum.com/u/itsme213)\
**Replies:** 0\
**Last updated:** [November 19, 2005, 5:33am UTC](https://www.ruby-forum.com/t/nitro-rayman/82931 "2005-11-19T05:33:02Z")

</div>

That tutorial is soooooo useful … just a feeeew more pages would round it out beautifully for poor saps like me. :slight\_smile:

---

## [10.to\_hex?](https://www.ruby-forum.com/t/10-to-hex/82855)

<div class="topic-metadata">

**Author:** [@uval](https://www.ruby-forum.com/u/uval)\
**Replies:** 2\
**Last updated:** [November 19, 2005, 3:44am UTC](https://www.ruby-forum.com/t/10-to-hex/82855 "2005-11-19T03:44:33Z")

</div>

Hello, I can’t find the function to convert an number to its hex representation I feel it must be there … irb(main):068:0\> Integer.methods.grep /hex/ =\> \[\] irb(main):069:0\> Numeric.methods.grep /hex/ =\> \[\] Regards…

---

## [Block Syntax Error](https://www.ruby-forum.com/t/block-syntax-error/48254)

<div class="topic-metadata">

**Author:** [@zhimin.wen](https://www.ruby-forum.com/u/zhimin.wen)\
**Replies:** 8\
**Last updated:** [November 19, 2005, 1:10am UTC](https://www.ruby-forum.com/t/block-syntax-error/48254 "2005-11-19T01:10:51Z")

</div>

Hi, Please see the following code ===\>8======================= def func \*args,&blk puts \*args instance\_eval &blk end func(“a str”) {puts “blk”} #OK func “a str” do puts “blk” end #OK func “a str” {puts “blk”} #…

---

## [Officeofgreatideas.com](https://www.ruby-forum.com/t/officeofgreatideas-com/48232)

<div class="topic-metadata">

**Author:** [@michael.schwab](https://www.ruby-forum.com/u/michael.schwab)\
**Replies:** 6\
**Last updated:** [November 19, 2005, 12:58am UTC](https://www.ruby-forum.com/t/officeofgreatideas-com/48232 "2005-11-19T00:58:47Z")

</div>

Good evening, I am thrilled to announce the launch of my website http://www.officeofgreatideas.com . I do hope that some of you will find time to scope it out and submit a few ideas (I welcome computing-related idea…

---

## [Overriding NArray.new](https://www.ruby-forum.com/t/overriding-narray-new/48330)

<div class="topic-metadata">

**Author:** [@fugalh](https://www.ruby-forum.com/u/fugalh)\
**Replies:** 3\
**Last updated:** [November 19, 2005, 12:25am UTC](https://www.ruby-forum.com/t/overriding-narray-new/48330 "2005-11-19T00:25:36Z")

</div>

class Sound \< NArray def initialize puts ‘Chunky. Bacon.’ end end Sound.new(4,10) #=\> Sound.sfloat(10): \[ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 \] I’m not sure why this is, but I bet it has something to…

---

## [Ruby's weird operators (||=)](https://www.ruby-forum.com/t/rubys-weird-operators/48319)

<div class="topic-metadata">

**Author:** [@maggelet](https://www.ruby-forum.com/u/maggelet)\
**Replies:** 5\
**Last updated:** [November 18, 2005, 11:22pm UTC](https://www.ruby-forum.com/t/rubys-weird-operators/48319 "2005-11-18T23:22:05Z")

</div>

Hi, Is there an explanation somewhere of all the weird operators in ruby such as ||= and exactly what they do? Apologies if this is a faq but I’m unable to google anything.

---

## [Embedded ruby limitations](https://www.ruby-forum.com/t/embedded-ruby-limitations/48212)

<div class="topic-metadata">

**Author:** [@derek](https://www.ruby-forum.com/u/derek)\
**Replies:** 3\
**Last updated:** [November 18, 2005, 11:09pm UTC](https://www.ruby-forum.com/t/embedded-ruby-limitations/48212 "2005-11-18T23:09:51Z")

</div>

I really want to embed ruby in a new app. However, the limitation of one interpreter per process is too limiting and possibly dangerous for what i want to do. Is this limitation being addressed? I might be willing t…

---

## [Ruby RTF 0.1.0](https://www.ruby-forum.com/t/ruby-rtf-0-1-0/82427)

<div class="topic-metadata">

**Author:** [@paw220470](https://www.ruby-forum.com/u/paw220470)\
**Replies:** 0\
**Last updated:** [November 18, 2005, 11:00pm UTC](https://www.ruby-forum.com/t/ruby-rtf-0-1-0/82427 "2005-11-18T23:00:48Z")

</div>

Ruby RTF 0.1.0 I’ve just released version 0.1.0 of the Ruby RTF library. This library allows for the creation of RTF documents in code. Although this is an early release the library is usable. The library is provided …

---

## [Maximum read size with Net::HTTP.get?](https://www.ruby-forum.com/t/maximum-read-size-with-net-http-get/48329)

<div class="topic-metadata">

**Author:** [@smorabito](https://www.ruby-forum.com/u/smorabito)\
**Replies:** 0\
**Last updated:** [November 18, 2005, 10:54pm UTC](https://www.ruby-forum.com/t/maximum-read-size-with-net-http-get/48329 "2005-11-18T22:54:42Z")

</div>

Folks, I have a Ruby application that allows users fairly arbitrary access to URLs. The application then opens and reads the object at that URL using Net::HTTP.get() and attempts to parse it as an XML document. So f…

---

## ['fixtures'](https://www.ruby-forum.com/t/fixtures/81721)

<div class="topic-metadata">

**Author:** [@mkhan](https://www.ruby-forum.com/u/mkhan)\
**Replies:** 1\
**Last updated:** [November 18, 2005, 10:39pm UTC](https://www.ruby-forum.com/t/fixtures/81721 "2005-11-18T22:39:35Z")

</div>

A quick question, ‘fixtures’ belows to what: Test::Unit or ActiveRecord or rails. I guess, ActiveRecord. If I am wrong, someone correct me please. Thanks

---

## [Re: Ordinal Date String to Standard Date String for a Beginn](https://www.ruby-forum.com/t/re-ordinal-date-string-to-standard-date-string-for-a-beginn/48260)

<div class="topic-metadata">

**Author:** [@botp](https://www.ruby-forum.com/u/botp)\
**Replies:** 8\
**Last updated:** [November 18, 2005, 10:09pm UTC](https://www.ruby-forum.com/t/re-ordinal-date-string-to-standard-date-string-for-a-beginn/48260 "2005-11-18T22:09:23Z")

</div>

davyb \[mailto:removed\_email\_address@domain.invalid\] #I have an ordinal date string and I want to change it to an ordinary #date string. For example: 2005/1 should give January 1, 2005. I see #ordinal in the Date cla…

---

## [Ordinal Date String to Standard Date String for a Beginner](https://www.ruby-forum.com/t/ordinal-date-string-to-standard-date-string-for-a-beginner/48247)

<div class="topic-metadata">

**Author:** [@david.a.boyd](https://www.ruby-forum.com/u/david.a.boyd)\
**Replies:** 7\
**Last updated:** [November 18, 2005, 9:57pm UTC](https://www.ruby-forum.com/t/ordinal-date-string-to-standard-date-string-for-a-beginner/48247 "2005-11-18T21:57:19Z")

</div>

Hi, I have an ordinal date string and I want to change it to an ordinary date string. For example: 2005/1 should give January 1, 2005. I see ordinal in the Date class but I need a simple example. Thanks, Dave

---

## [Gem install getopt problem](https://www.ruby-forum.com/t/gem-install-getopt-problem/48311)

<div class="topic-metadata">

**Author:** [@vjoel](https://www.ruby-forum.com/u/vjoel)\
**Replies:** 4\
**Last updated:** [November 18, 2005, 9:21pm UTC](https://www.ruby-forum.com/t/gem-install-getopt-problem/48311 "2005-11-18T21:21:07Z")

</div>

$ gem install getopt Attempting local installation of ‘getopt’ Local gem file not found: getopt\*.gem Attempting remote installation of ‘getopt’ Successfully installed getopt-1.3.0 Installing RDoc documentation for g…

---

## [RubyCocoa question](https://www.ruby-forum.com/t/rubycocoa-question/48126)

<div class="topic-metadata">

**Author:** [@ezra](https://www.ruby-forum.com/u/ezra)\
**Replies:** 5\
**Last updated:** [November 18, 2005, 9:18pm UTC](https://www.ruby-forum.com/t/rubycocoa-question/48126 "2005-11-18T21:18:06Z")

</div>

Hey list- Does anyone have an example of using rubycocoa to create a simple app that can display a file open dialog or sheet and then return a stirng of the file path to ruby so I can do some text processing on it? I…

---

## [Reg - Ruby Extended Grammar 0.4.6](https://www.ruby-forum.com/t/reg-ruby-extended-grammar-0-4-6/48320)

<div class="topic-metadata">

**Author:** [@vikkous](https://www.ruby-forum.com/u/vikkous)\
**Replies:** 0\
**Last updated:** [November 18, 2005, 8:59pm UTC](https://www.ruby-forum.com/t/reg-ruby-extended-grammar-0-4-6/48320 "2005-11-18T20:59:58Z")

</div>

I am pleased to announce version 0.4.6 of Reg, the Ruby Extended Grammar, a tool for matching patterns in ruby object graphs. Reg is a mini-language that’s embedded directly in ruby because it does all its tricks with…

---

## [Irb and ruby](https://www.ruby-forum.com/t/irb-and-ruby/74823)

<div class="topic-metadata">

**Author:** [@uval](https://www.ruby-forum.com/u/uval)\
**Replies:** 3\
**Last updated:** [November 18, 2005, 6:38pm UTC](https://www.ruby-forum.com/t/irb-and-ruby/74823 "2005-11-18T18:38:04Z")

</div>

Hello all, I am reading this page http://www.rubyist.net/~slagell/ruby/accesscontrol.html especially the “fish”.square example I am puzzled by different behaviours of ruby itself and the irb irb(main):101:0\> def squ…

---

## [Re: foreign keys in Ruby on Rails](https://www.ruby-forum.com/t/re-foreign-keys-in-ruby-on-rails/81247)

<div class="topic-metadata">

**Author:** [@steve](https://www.ruby-forum.com/u/steve)\
**Replies:** 0\
**Last updated:** [November 18, 2005, 6:32pm UTC](https://www.ruby-forum.com/t/re-foreign-keys-in-ruby-on-rails/81247 "2005-11-18T18:32:00Z")

</div>

Hi Guybrush, Thanks for your message about Ruby on Rails. I think you’ll find that you’re likely to get a quicker and more accurate response to your message on the Ruby on Rails specific mailing list. For subscripti…

---

## [Re: Problems installing rails](https://www.ruby-forum.com/t/re-problems-installing-rails/49985)

<div class="topic-metadata">

**Author:** [@steve](https://www.ruby-forum.com/u/steve)\
**Replies:** 0\
**Last updated:** [November 18, 2005, 6:07pm UTC](https://www.ruby-forum.com/t/re-problems-installing-rails/49985 "2005-11-18T18:07:54Z")

</div>

Hi Jens, Thanks for your message about Ruby on Rails. I think you’ll find that you’re likely to get a quicker and more accurate response to your message on the Ruby on Rails specific mailing list. For subscription a…

---

## [Re: problem after rails upgrade](https://www.ruby-forum.com/t/re-problem-after-rails-upgrade/48300)

<div class="topic-metadata">

**Author:** [@steve](https://www.ruby-forum.com/u/steve)\
**Replies:** 0\
**Last updated:** [November 18, 2005, 6:07pm UTC](https://www.ruby-forum.com/t/re-problem-after-rails-upgrade/48300 "2005-11-18T18:07:54Z")

</div>

Hi Jason, Thanks for your message about Ruby on Rails. I think you’ll find that you’re likely to get a quicker and more accurate response to your message on the Ruby on Rails specific mailing list. For subscription …

---

## [Learning Ruby Hackfest Hosted by new\_haven.rb this Friday](https://www.ruby-forum.com/t/learning-ruby-hackfest-hosted-by-new-haven-rb-this-friday/48096)

<div class="topic-metadata">

**Author:** [@gregory.t.brown](https://www.ruby-forum.com/u/gregory.t.brown)\
**Replies:** 6\
**Last updated:** [November 18, 2005, 6:05pm UTC](https://www.ruby-forum.com/t/learning-ruby-hackfest-hosted-by-new-haven-rb-this-friday/48096 "2005-11-18T18:05:32Z")

</div>

The New Haven Ruby Brigade is putting on a mini Hackfest this friday evening. Our goal is to pair up newbies with more experienced Rubyists and work our way through a RubyQuiz. Before we start, a few of us will be …

---

## [Ruby IDE](https://www.ruby-forum.com/t/ruby-ide/79955)

<div class="topic-metadata">

**Author:** [@rawn027](https://www.ruby-forum.com/u/rawn027)\
**Replies:** 10\
**Last updated:** [November 18, 2005, 5:52pm UTC](https://www.ruby-forum.com/t/ruby-ide/79955 "2005-11-18T17:52:47Z")

</div>

I am running mac os x and was wondering a good IDE with at least good syntax coloring. Is FreeRIDE any good?

---

## [Gem error: OpenURI::HTTPError](https://www.ruby-forum.com/t/gem-error-openuri-httperror/48627)

<div class="topic-metadata">

**Author:** [@Daniel.Berger](https://www.ruby-forum.com/u/Daniel.Berger)\
**Replies:** 0\
**Last updated:** [November 18, 2005, 5:16pm UTC](https://www.ruby-forum.com/t/gem-error-openuri-httperror/48627 "2005-11-18T17:16:29Z")

</div>

Hi all, Ruby 1.8.2 gems 0.8.11 I received this error while trying to install the Nitro gem: djberge@~-697\>sudo gem install nitro Password: Attempting local installation of ‘nitro’ Local gem file not found: nitro\*.…

---

## [Question about begin, rescue, end](https://www.ruby-forum.com/t/question-about-begin-rescue-end/48244)

<div class="topic-metadata">

**Author:** [@hhausman](https://www.ruby-forum.com/u/hhausman)\
**Replies:** 10\
**Last updated:** [November 18, 2005, 5:16pm UTC](https://www.ruby-forum.com/t/question-about-begin-rescue-end/48244 "2005-11-18T17:16:28Z")

</div>

Here’s my code. It’s dumb: require ‘open-uri’ begin while true do the\_begin\_time = Time.now open( “http://danceliquid.com/test/public/” ) do |stuff| puts stuff.read end the\_wait\_time = Time.now - the\_begin\_time …

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

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