# Ruby

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

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

---

## [Replacement idiom for "list\_or\_nil.to\_a"?](https://www.ruby-forum.com/t/replacement-idiom-for-list-or-nil-to-a/105062)

<div class="topic-metadata">

**Author:** [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Replies:** 10\
**Last updated:** [September 25, 2007, 11:02pm UTC](https://www.ruby-forum.com/t/replacement-idiom-for-list-or-nil-to-a/105062 "2007-09-25T23:02:03Z")

</div>

Many scripting languages, including Ruby, will “do nothing gracefully” when asked to iterate through an empty list. That is, they iterate NO times. However, many Ruby methods do not return empty lists when nothing is…

---

## [Embedding: ruby vs. lua](https://www.ruby-forum.com/t/embedding-ruby-vs-lua/82529)

<div class="topic-metadata">

**Author:** [@Shea\_M](https://www.ruby-forum.com/u/Shea_M)\
**Replies:** 10\
**Last updated:** [September 25, 2007, 11:02pm UTC](https://www.ruby-forum.com/t/embedding-ruby-vs-lua/82529 "2007-09-25T23:02:03Z")

</div>

I need an embedded scripting language. Lua was the first one that jumped into my head, even though I know very little about the language, other than the fact that games often embed it. I work with C++, but ruby is my…

---

## [Regarding Constants](https://www.ruby-forum.com/t/regarding-constants/110284)

<div class="topic-metadata">

**Author:** [@hbotadra](https://www.ruby-forum.com/u/hbotadra)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 11:01pm UTC](https://www.ruby-forum.com/t/regarding-constants/110284 "2007-09-25T23:01:20Z")

</div>

Hi, I am having some difficulty in the use of constants in Ruby. I’ve a module: eg. Module Constants MY\_CONST = “hello” end I include this module in my model. Further, the name of the constant (MY\_CONST) would be…

---

## [Problems generating scaffolding](https://www.ruby-forum.com/t/problems-generating-scaffolding/84814)

<div class="topic-metadata">

**Author:** [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 11:01pm UTC](https://www.ruby-forum.com/t/problems-generating-scaffolding/84814 "2007-09-25T23:01:10Z")

</div>

Hello, I’m trying to write a rails application using Postgres for my back-end. When I go to generate the scaffolding some of them work and some of them don’t. I’m not sure why some are failing. According to Postgres…

---

## [Atchoum - A static website framework](https://www.ruby-forum.com/t/atchoum-a-static-website-framework/104452)

<div class="topic-metadata">

**Author:** [@macournoyer](https://www.ruby-forum.com/u/macournoyer)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 11:01pm UTC](https://www.ruby-forum.com/t/atchoum-a-static-website-framework/104452 "2007-09-25T23:01:05Z")

</div>

Hey! just wanted to share this little framework I built to make static website using markaby. Let me know what you think! Thanks

---

## [The meaning of a = b in object oriented languages](https://www.ruby-forum.com/t/the-meaning-of-a-b-in-object-oriented-languages/114853)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 29\
**Last updated:** [September 25, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/the-meaning-of-a-b-in-object-oriented-languages/114853 "2007-09-25T23:00:48Z")

</div>

The meaning of a = b in object oriented languages. I just want to confirm that in OOP, if a is an object, then b = a is only copying the reference. (to make it to the most basic form: a is 4 bytes, let’s say, at mem…

---

## [Best IDE for ruby and rails development](https://www.ruby-forum.com/t/best-ide-for-ruby-and-rails-development/113715)

<div class="topic-metadata">

**Author:** [@jeet\_ajay](https://www.ruby-forum.com/u/jeet_ajay)\
**Replies:** 37\
**Last updated:** [September 25, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/best-ide-for-ruby-and-rails-development/113715 "2007-09-25T23:00:42Z")

</div>

Hi All Could anyone tell me which is best IDE for ruby and rails development. at least we can know features of IDEs that other ruby people are using cheers Jeet It is only people of small moral stature who have to s…

---

## [Posting form data in ruby 1.8.2?](https://www.ruby-forum.com/t/posting-form-data-in-ruby-1-8-2/114582)

<div class="topic-metadata">

**Author:** [@7stud](https://www.ruby-forum.com/u/7stud)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/posting-form-data-in-ruby-1-8-2/114582 "2007-09-25T23:00:36Z")

</div>

Hi, I’m trying to figure out how to post form data to a url, but the methods used in the examples in the Net::HTTP docs use methods that aren’t available in my ruby install: Posting Form Data: require 'net/http' req…

---

## [Sane #hash implementation?](https://www.ruby-forum.com/t/sane-hash-implementation/83816)

<div class="topic-metadata">

**Author:** [@Shot\_SPiotr\_S.S](https://www.ruby-forum.com/u/Shot_SPiotr_S.S)\
**Replies:** 14\
**Last updated:** [September 25, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/sane-hash-implementation/83816 "2007-09-25T23:00:19Z")

</div>

I have a Set subclass, Block. I need two blocks to be considered the same by Set iff they have the same elements. From what I gathered, Set treats two objects as equal when they are eql? and have the same hash. Implem…

---

## [Blocks expected arguments and metaprogramming](https://www.ruby-forum.com/t/blocks-expected-arguments-and-metaprogramming/114726)

<div class="topic-metadata">

**Author:** [@pedro](https://www.ruby-forum.com/u/pedro)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/blocks-expected-arguments-and-metaprogramming/114726 "2007-09-25T23:00:17Z")

</div>

hi all, in this (Parked at Loopia ) code : module Kernel def expected\_argument\_list 2 end def before (name) puts :hola define\_method(name){ if expected\_argument\_list==1 yield :only\_one else yield :one,:two e…

---

## [Rubyforge problem? Can not download rmagick-1.15.10](https://www.ruby-forum.com/t/rubyforge-problem-can-not-download-rmagick-1-15-10/114708)

<div class="topic-metadata">

**Author:** [@Bambang\_Purnomosidi](https://www.ruby-forum.com/u/Bambang_Purnomosidi)\
**Replies:** 1\
**Last updated:** [September 25, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/rubyforge-problem-can-not-download-rmagick-1-15-10/114708 "2007-09-25T23:00:03Z")

</div>

Dear, Trying to access rmagick-1.15.10 (gem/tar.gz/tar.bz2), I found 404 error. Is it because the delay of uploaded files or something wrong with Rubyforge? – Key fingerprint FBBA CDA6 1A33 D41C 2470 5B82 12D9 DB1…

---

## [Auto assign arguments?](https://www.ruby-forum.com/t/auto-assign-arguments/82477)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 36\
**Last updated:** [September 25, 2007, 10:53pm UTC](https://www.ruby-forum.com/t/auto-assign-arguments/82477 "2007-09-25T22:53:11Z")

</div>

I see where to put bugs and patches, but this is a feature request. Is this the right place to submit these? In any case, here’s a feature request: I find that I do a lot of this: def initialize(thing, other) @thing …

---

## [Pervasive Methods](https://www.ruby-forum.com/t/pervasive-methods/81244)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 30\
**Last updated:** [September 25, 2007, 10:53pm UTC](https://www.ruby-forum.com/t/pervasive-methods/81244 "2007-09-25T22:53:11Z")

</div>

Chris C. wrote: and make them overriable, and also allow access to the object through the Pervasive. Problem here though, when writing a library we won’t know that someone overrode a method somewhere else in the cha…

---

## [How to realize method/function overloading in Ruby?](https://www.ruby-forum.com/t/how-to-realize-method-function-overloading-in-ruby/82535)

<div class="topic-metadata">

**Author:** [@Shiwei\_Z](https://www.ruby-forum.com/u/Shiwei_Z)\
**Replies:** 9\
**Last updated:** [September 25, 2007, 10:52pm UTC](https://www.ruby-forum.com/t/how-to-realize-method-function-overloading-in-ruby/82535 "2007-09-25T22:52:40Z")

</div>

I think Function Overloading in C++ is very meaningful. And currently the case for me is: How I can make use of method/function overloading in Ruby? Besides you might tell me Ruby is designed to exclude method overl…

---

## [RubyJS - Convert Ruby to Javascript](https://www.ruby-forum.com/t/rubyjs-convert-ruby-to-javascript/82643)

<div class="topic-metadata">

**Author:** [@michaeln](https://www.ruby-forum.com/u/michaeln)\
**Replies:** 9\
**Last updated:** [September 25, 2007, 10:52pm UTC](https://www.ruby-forum.com/t/rubyjs-convert-ruby-to-javascript/82643 "2007-09-25T22:52:36Z")

</div>

Hi all, Long time since I announced my last project… With RubyJS you can transform a subset of Ruby into Javascript code. What works? Classes, modules, inheritance Instance methods, class methods Exceptions (rescue/…

---

## [OFFTOPIC: How to pronounce Ruby?](https://www.ruby-forum.com/t/offtopic-how-to-pronounce-ruby/82406)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 12\
**Last updated:** [September 25, 2007, 10:52pm UTC](https://www.ruby-forum.com/t/offtopic-how-to-pronounce-ruby/82406 "2007-09-25T22:52:34Z")

</div>

Is it more similar to ‘dummy’ or ‘dubi(ous)’? (or neither :slight\_smile: Cheers, Peter \_\_ http://www.rubyrailways.com

---

## [DRY gsub](https://www.ruby-forum.com/t/dry-gsub/82647)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 34\
**Last updated:** [September 25, 2007, 10:52pm UTC](https://www.ruby-forum.com/t/dry-gsub/82647 "2007-09-25T22:52:29Z")

</div>

I wrote the following ruby statements… I get the result I need , I tried to DRY it for 2 hours without being successfull , d = d.gsub(/\\r\\n/,' ') # get rid of carriage return d = d.gsub(/;/,' ') # replace colum…

---

## [Hoe poisoned in Rubyforge](https://www.ruby-forum.com/t/hoe-poisoned-in-rubyforge/82364)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 54\
**Last updated:** [September 25, 2007, 10:52pm UTC](https://www.ruby-forum.com/t/hoe-poisoned-in-rubyforge/82364 "2007-09-25T22:52:29Z")

</div>

Somehow hoe-1.1.7 has become poisoned in the RubyGems index: $ sudo gem install hoe Install required dependency zentest? \[Yn\] ^CERROR: Interrupted There is no gem by the name of ‘zentest’, and hoe will likely never …

---

## [Regular expression: Is this a bug or feature?](https://www.ruby-forum.com/t/regular-expression-is-this-a-bug-or-feature/102662)

<div class="topic-metadata">

**Author:** [@mkrauskopf](https://www.ruby-forum.com/u/mkrauskopf)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 10:52pm UTC](https://www.ruby-forum.com/t/regular-expression-is-this-a-bug-or-feature/102662 "2007-09-25T22:52:29Z")

</div>

Hi ruby experts! Is this intended behaviour? irb(main):001:0\> s1=‘a=1’ =\> “a=1” irb(main):002:0\> s2=‘b=1’ =\> “b=1” irb(main):003:0\> s1 =~ /a|b=(.)/ =\> 0 \<------ expression matches irb…

---

## [Inheritance concept in ruby](https://www.ruby-forum.com/t/inheritance-concept-in-ruby/81488)

<div class="topic-metadata">

**Author:** [@tnjnew](https://www.ruby-forum.com/u/tnjnew)\
**Replies:** 18\
**Last updated:** [September 25, 2007, 10:52pm UTC](https://www.ruby-forum.com/t/inheritance-concept-in-ruby/81488 "2007-09-25T22:52:28Z")

</div>

Hi, Is ruby supports multiple inheritence. I am the beginner of ruby. simple code for ruby multiple inheritence. Thanks & Regards, Kumar

---

## [Logging 0.1.0](https://www.ruby-forum.com/t/logging-0-1-0/81872)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 8\
**Last updated:** [September 25, 2007, 10:52pm UTC](https://www.ruby-forum.com/t/logging-0-1-0/81872 "2007-09-25T22:52:28Z")

</div>

SYNOPSIS Logging is a flexible logging library for use in Ruby programs based on the design of Java’s log4j library. It features a hierarchical logging system, custom level names, multiple output destinations per lo…

---

## [Getting existing context when defining a singleton method (c](https://www.ruby-forum.com/t/getting-existing-context-when-defining-a-singleton-method-c/81250)

<div class="topic-metadata">

**Author:** [@schmitr3](https://www.ruby-forum.com/u/schmitr3)\
**Replies:** 3\
**Last updated:** [September 25, 2007, 10:52pm UTC](https://www.ruby-forum.com/t/getting-existing-context-when-defining-a-singleton-method-c/81250 "2007-09-25T22:52:19Z")

</div>

Hi I’m fairly new to this “meta-programming” thing, so excuse me if I get my terminology wrong. Is there any way of getting access to the exisiting context when using class \<\< obj or otherwise creating a singleton me…

---

## [Read data embedded in a program](https://www.ruby-forum.com/t/read-data-embedded-in-a-program/82563)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 10:52pm UTC](https://www.ruby-forum.com/t/read-data-embedded-in-a-program/82563 "2007-09-25T22:52:19Z")

</div>

Hi all, I run a script copied from “the Ruby way” but it doesn’t work. Any comments? Thanks, Li ###script DATA.each\_line do |line| puts line.reverse end END line A line B line C ##screen output ruby p352\_d…

---

## [Big project in ruby](https://www.ruby-forum.com/t/big-project-in-ruby/82530)

<div class="topic-metadata">

**Author:** [@miquel](https://www.ruby-forum.com/u/miquel)\
**Replies:** 3\
**Last updated:** [September 25, 2007, 10:52pm UTC](https://www.ruby-forum.com/t/big-project-in-ruby/82530 "2007-09-25T22:52:18Z")

</div>

Hi all I’m trying to design a big application in ruby and I have (among others) a doubt/question. I’m creating folders with the classes (I supose influenced by java package distribution structure) and I want to use t…

---

## [Tattle - The Ruby Census](https://www.ruby-forum.com/t/tattle-the-ruby-census/81407)

<div class="topic-metadata">

**Author:** [@Chad\_F](https://www.ruby-forum.com/u/Chad_F)\
**Replies:** 113\
**Last updated:** [September 25, 2007, 10:52pm UTC](https://www.ruby-forum.com/t/tattle-the-ruby-census/81407 "2007-09-25T22:52:16Z")

</div>

Greetings and Happy New Year, Rubyists! At the first Rails Edge conference (http://therailsedge.com), Jim Weirich, Bruce W., and I were chatting about how to improve the RubyGems platform-specific behavior, when we re…

---

## [Possible to un-warn?](https://www.ruby-forum.com/t/possible-to-un-warn/82600)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 11\
**Last updated:** [September 25, 2007, 10:51pm UTC](https://www.ruby-forum.com/t/possible-to-un-warn/82600 "2007-09-25T22:51:58Z")

</div>

Hi all, I’m working on implementing expectation matchers in rspec, so instead of this: cat.should\_eat “tuna” you would write this: cat.should eat “tuna” Now the rub is that this generates “warning: parenthesize arg…

---

## [Rubyforge.org questions](https://www.ruby-forum.com/t/rubyforge-org-questions/82506)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 14\
**Last updated:** [September 25, 2007, 10:51pm UTC](https://www.ruby-forum.com/t/rubyforge-org-questions/82506 "2007-09-25T22:51:36Z")

</div>

Hello, How do I activate commit diff mails? How can I create a ‘normal’ svn structure (i.e. trunk, branches, tags etc). because as I understood, in the svn dir your project\_name directory is the only dir (i.e. no tru…

---

## [Long quotes on multiple lines](https://www.ruby-forum.com/t/long-quotes-on-multiple-lines/81784)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 9\
**Last updated:** [September 25, 2007, 10:51pm UTC](https://www.ruby-forum.com/t/long-quotes-on-multiple-lines/81784 "2007-09-25T22:51:11Z")

</div>

Is there an idiomatic way to continue a long quote on a separate line, or should I just do: “If you need help,” + " please dial the operator"

---

## [Question about Array's size instance method](https://www.ruby-forum.com/t/question-about-arrays-size-instance-method/81801)

<div class="topic-metadata">

**Author:** [@javamllama](https://www.ruby-forum.com/u/javamllama)\
**Replies:** 5\
**Last updated:** [September 25, 2007, 10:50pm UTC](https://www.ruby-forum.com/t/question-about-arrays-size-instance-method/81801 "2007-09-25T22:50:44Z")

</div>

Hello all, I have a quick question regarding the way the size instance method works for Arrays. When an array is asked for its size multiple times in a piece of code (say a method). Which of the following happens? a…

---

## [Keybox 1.0.0 Released](https://www.ruby-forum.com/t/keybox-1-0-0-released/82448)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 14\
**Last updated:** [September 25, 2007, 10:50pm UTC](https://www.ruby-forum.com/t/keybox-1-0-0-released/82448 "2007-09-25T22:50:44Z")

</div>

keybox version 1.0.0 has been released. http://keybox.rubyforge.org Keybox is a set of command line applications and ruby libraries for secure password storage and password generation. {{ Changelog for Version 1.0.0 …

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

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