# Ruby

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

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

---

## [How to write ruby in multiple lines](https://www.ruby-forum.com/t/how-to-write-ruby-in-multiple-lines/103736)

<div class="topic-metadata">

**Author:** [@anakintang](https://www.ruby-forum.com/u/anakintang)\
**Replies:** 5\
**Last updated:** [May 10, 2007, 12:25am UTC](https://www.ruby-forum.com/t/how-to-write-ruby-in-multiple-lines/103736 "2007-05-10T00:25:59Z")

</div>

All, How can I write “s = s1 + s2 + s3” in multiple lines like below: s= s1 s2 s3 Thanks

---

## [Using variables for the hash name and key name](https://www.ruby-forum.com/t/using-variables-for-the-hash-name-and-key-name/103735)

<div class="topic-metadata">

**Author:** [@sheepfunk](https://www.ruby-forum.com/u/sheepfunk)\
**Replies:** 2\
**Last updated:** [May 9, 2007, 10:58pm UTC](https://www.ruby-forum.com/t/using-variables-for-the-hash-name-and-key-name/103735 "2007-05-09T22:58:52Z")

</div>

I’m trying to call a value from a hash using variables for both the hash name and the key I’m trying to call So I’ve got a hash like this hash\_name = { “key\_name\_1” =\> “value\_name\_1”, “key\_name\_2” =\> “value\_name\_2”, …

---

## [Syntax in Ruby 2.0](https://www.ruby-forum.com/t/syntax-in-ruby-2-0/103750)

<div class="topic-metadata">

**Author:** [@Japh07](https://www.ruby-forum.com/u/Japh07)\
**Replies:** 1\
**Last updated:** [May 9, 2007, 10:19pm UTC](https://www.ruby-forum.com/t/syntax-in-ruby-2-0/103750 "2007-05-09T22:19:50Z")

</div>

Hi everybody, I’m starting learning Ruby for a couple of weeks now and I’ve heard that Ruby 2.0 is in the making and maybe coming out this year. That brings me to the following question: Does anybody know if the synt…

---

## [Use of Double-Colon ::](https://www.ruby-forum.com/t/use-of-double-colon/103741)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [May 9, 2007, 9:03pm UTC](https://www.ruby-forum.com/t/use-of-double-colon/103741 "2007-05-09T21:03:39Z")

</div>

Hi, I’m new to Ruby and throughly enjoying learning the language. I’m currently working my way through the Pickaxe book, but have a couple of questions I hope someone can help me out with. As I understand it the doub…

---

## [Compiling mod\_ruby on mac os x](https://www.ruby-forum.com/t/compiling-mod-ruby-on-mac-os-x/103742)

<div class="topic-metadata">

**Author:** [@pipeek](https://www.ruby-forum.com/u/pipeek)\
**Replies:** 0\
**Last updated:** [May 9, 2007, 8:41pm UTC](https://www.ruby-forum.com/t/compiling-mod-ruby-on-mac-os-x/103742 "2007-05-09T20:41:25Z")

</div>

Hi! I have problem with mod\_ruby compilation on os X (10.4.9) % make gcc -g -O2 -fno-common -pipe -fno-common -Wall -DDARWIN -DUSE\_HSREGEX -DUSE\_EXPAT -g -Os -pipe -DHARD\_SERVER\_LIMIT=2048 -DEAPI -I. -I/sw/lib/rub…

---

## [Wildcard arrays or lists](https://www.ruby-forum.com/t/wildcard-arrays-or-lists/103729)

<div class="topic-metadata">

**Author:** [@anansi](https://www.ruby-forum.com/u/anansi)\
**Replies:** 2\
**Last updated:** [May 9, 2007, 8:18pm UTC](https://www.ruby-forum.com/t/wildcard-arrays-or-lists/103729 "2007-05-09T20:18:34Z")

</div>

hi , I wondered if it is possible to tell ruby to accept wildcards in arrays or lists. I have a function which relys on .each and accepts arrays and lists of IP’s. Is it possible to use wildcards in an array like buf…

---

## [Mailread from stdlib](https://www.ruby-forum.com/t/mailread-from-stdlib/103668)

<div class="topic-metadata">

**Author:** [@Alex\_VSBreger](https://www.ruby-forum.com/u/Alex_VSBreger)\
**Replies:** 2\
**Last updated:** [May 9, 2007, 6:35pm UTC](https://www.ruby-forum.com/t/mailread-from-stdlib/103668 "2007-05-09T18:35:58Z")

</div>

Hello mailread is written very bad. It unable to extract “From” field from mailbox (it can differ from any other header) Also it cann’t get all values from repeated headers, such as “Received”, only the last one

---

## [Ruby XML-RPC question (slightly OT)](https://www.ruby-forum.com/t/ruby-xml-rpc-question-slightly-ot/103619)

<div class="topic-metadata">

**Author:** [@joshuajnoble](https://www.ruby-forum.com/u/joshuajnoble)\
**Replies:** 2\
**Last updated:** [May 9, 2007, 6:25pm UTC](https://www.ruby-forum.com/t/ruby-xml-rpc-question-slightly-ot/103619 "2007-05-09T18:25:57Z")

</div>

Hi, I’ve got a little Ruby script that I’m trying to get to successfully read from wordpress blogs for an aggregator of sorts, but I haven’t had any luck. XML-RPC is enabled for the blog and I doubled checked that it’…

---

## [London Ruby User Group - 14th May, 2007](https://www.ruby-forum.com/t/london-ruby-user-group-14th-may-2007/103723)

<div class="topic-metadata">

**Author:** [@Murray\_S](https://www.ruby-forum.com/u/Murray_S)\
**Replies:** 0\
**Last updated:** [May 9, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/london-ruby-user-group-14th-may-2007/103723 "2007-05-09T17:59:43Z")

</div>

Hi all, The next London Ruby U. Group meeting will be on Monday, 14th May, 2007 from 6:30pm to 8:00pm at our usual venue: Skills Matter, 1 Sekeforde Street, London, EC1R 0BE Closest tube station: Farringdon This…

---

## [Witch Oracle library should I use](https://www.ruby-forum.com/t/witch-oracle-library-should-i-use/103356)

<div class="topic-metadata">

**Author:** [@benemson](https://www.ruby-forum.com/u/benemson)\
**Replies:** 23\
**Last updated:** [May 9, 2007, 5:56pm UTC](https://www.ruby-forum.com/t/witch-oracle-library-should-i-use/103356 "2007-05-09T17:56:18Z")

</div>

Have had a look on rubyforge and done a little looking around but not totaly sure which ruby oracle library’s I should use. I am connecting to a 10g database. Ruby9i and Ruby/OCI8 seem to be the contenders, or is ther…

---

## [Implementation of the object.sort method](https://www.ruby-forum.com/t/implementation-of-the-object-sort-method/103676)

<div class="topic-metadata">

**Author:** [@jbucaran](https://www.ruby-forum.com/u/jbucaran)\
**Replies:** 10\
**Last updated:** [May 9, 2007, 5:52pm UTC](https://www.ruby-forum.com/t/implementation-of-the-object-sort-method/103676 "2007-05-09T17:52:00Z")

</div>

Hi, Can you show me an implementation of the Array.sort method? This implementation would be demonstrative only. This would handle when a block is passed. The reason is I have trouble understanding why the following …

---

## [Pallet 1.2.1](https://www.ruby-forum.com/t/pallet-1-2-1/103093)

<div class="topic-metadata">

**Author:** [@tashirosgt](https://www.ruby-forum.com/u/tashirosgt)\
**Replies:** 17\
**Last updated:** [May 9, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/pallet-1-2-1/103093 "2007-05-09T16:30:34Z")

</div>

I’ve been writing a multiplatform packaging tool for the company I work for, dubbed “pallet”. I recently got the go-ahead to release it on RubyForge under the LGPL, so have spent the past day or so getting it up on th…

---

## [Using YAML as config](https://www.ruby-forum.com/t/using-yaml-as-config/85261)

<div class="topic-metadata">

**Author:** [@ledelste](https://www.ruby-forum.com/u/ledelste)\
**Replies:** 13\
**Last updated:** [May 9, 2007, 4:19pm UTC](https://www.ruby-forum.com/t/using-yaml-as-config/85261 "2007-05-09T16:19:30Z")

</div>

Hi all - I want to write a config file in YAML. In this file I will store a small graph of objects in an array: !mydomain,mydate/Company name: TuesdayCo subthings: !mydomain,mydate/Person name: Ruby Tuesday !myd…

---

## [HTML formated Ruby code](https://www.ruby-forum.com/t/html-formated-ruby-code/103507)

<div class="topic-metadata">

**Author:** [@fcruxen](https://www.ruby-forum.com/u/fcruxen)\
**Replies:** 9\
**Last updated:** [May 9, 2007, 3:45pm UTC](https://www.ruby-forum.com/t/html-formated-ruby-code/103507 "2007-05-09T15:45:48Z")

</div>

Hi, Does anyone knows how all that beautiful HTML formated Ruby code on ruby-lang.org is generated? Like this: # Output "I love Ruby" say = "I love Ruby" puts say # Output "I \*LOVE\* RUBY" say\['love'\] = "\*love\*" p…

---

## [Pushing Emacs to for Ruby](https://www.ruby-forum.com/t/pushing-emacs-to-for-ruby/103684)

<div class="topic-metadata">

**Author:** [@gnufied](https://www.ruby-forum.com/u/gnufied)\
**Replies:** 1\
**Last updated:** [May 9, 2007, 3:40pm UTC](https://www.ruby-forum.com/t/pushing-emacs-to-for-ruby/103684 "2007-05-09T15:40:46Z")

</div>

I just saw this on Emacs mailing list http://mathrick.org/files/emacs-demo.gif quite interesting bit i guess. Using rcodetools and semantic , i think this would be possible for Ruby also. Do we need this? I dunno, I …

---

## [Serious trouble on PPC with Ruby 1.8.6](https://www.ruby-forum.com/t/serious-trouble-on-ppc-with-ruby-1-8-6/92406)

<div class="topic-metadata">

**Author:** [@julik](https://www.ruby-forum.com/u/julik)\
**Replies:** 4\
**Last updated:** [May 9, 2007, 3:16pm UTC](https://www.ruby-forum.com/t/serious-trouble-on-ppc-with-ruby-1-8-6/92406 "2007-05-09T15:16:37Z")

</div>

Hello fine folks of ruby-talk! I am taking some serious damage with the fresh ruby 1.8.6 after updating from 1.8.4 All the usual rituals were executed including flushing the /usr/local/ lib.ruby hierarchy. I rebuilt…

---

## [Newbie: assign values/array to variables](https://www.ruby-forum.com/t/newbie-assign-values-array-to-variables/103695)

<div class="topic-metadata">

**Author:** [@Mark\_V](https://www.ruby-forum.com/u/Mark_V)\
**Replies:** 4\
**Last updated:** [May 9, 2007, 1:14pm UTC](https://www.ruby-forum.com/t/newbie-assign-values-array-to-variables/103695 "2007-05-09T13:14:17Z")

</div>

Hi, Thanks for all the fantastic work that has gone into ruby. Even though I am new it has proved to be very impressive. To my question. I’ve seen the following code: @vara, @varb = “ab,ac,ad,ae”.split(",") the wa…

---

## [Equality question](https://www.ruby-forum.com/t/equality-question/103630)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 7\
**Last updated:** [May 9, 2007, 1:08pm UTC](https://www.ruby-forum.com/t/equality-question/103630 "2007-05-09T13:08:16Z")

</div>

I am trying to use complex values as hash keys (they are actually method calls caught by method\_missing). However strange things are happening. Can someone explain what’s happening here please where marked? confs = {…

---

## [RubyCocoa Sheets - help anyone?](https://www.ruby-forum.com/t/rubycocoa-sheets-help-anyone/103409)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 32\
**Last updated:** [May 9, 2007, 12:26pm UTC](https://www.ruby-forum.com/t/rubycocoa-sheets-help-anyone/103409 "2007-05-09T12:26:57Z")

</div>

Hey Guys Just wondered if somone could help me with using modal sheets in RubyCocoa - I think I am nearly there but its one method paramater that is sucuppering me… In the apple tutorial here is the code: (void)show…

---

## [Ruby and EJavaBeans with RJB](https://www.ruby-forum.com/t/ruby-and-ejavabeans-with-rjb/103694)

<div class="topic-metadata">

**Author:** [@alflol](https://www.ruby-forum.com/u/alflol)\
**Replies:** 0\
**Last updated:** [May 9, 2007, 12:20pm UTC](https://www.ruby-forum.com/t/ruby-and-ejavabeans-with-rjb/103694 "2007-05-09T12:20:22Z")

</div>

Hi, i’m analyzing the possibility of calling a EJB from ruby code, in order to fetch sets of information from remote server. Does anyone have done this before? I’ m having trouble in translating the following piece f…

---

## [Natural language detection library](https://www.ruby-forum.com/t/natural-language-detection-library/103511)

<div class="topic-metadata">

**Author:** [@tnitsche](https://www.ruby-forum.com/u/tnitsche)\
**Replies:** 4\
**Last updated:** [May 9, 2007, 11:36am UTC](https://www.ruby-forum.com/t/natural-language-detection-library/103511 "2007-05-09T11:36:06Z")

</div>

Hi, does anyone know a Ruby library/module to detect which natural language is a given input text? Cheers Thomas

---

## [Pass data to a variable](https://www.ruby-forum.com/t/pass-data-to-a-variable/103602)

<div class="topic-metadata">

**Author:** [@uruz7](https://www.ruby-forum.com/u/uruz7)\
**Replies:** 22\
**Last updated:** [May 9, 2007, 11:14am UTC](https://www.ruby-forum.com/t/pass-data-to-a-variable/103602 "2007-05-09T11:14:04Z")

</div>

Hello, I’ve create a simple screen scraper which sends a message to a Jabber client for notification. The scraper portion works as does the Jabber portion but I’m having trouble passing the data from the scraper to t…

---

## [Passing info to classes and methods](https://www.ruby-forum.com/t/passing-info-to-classes-and-methods/103670)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 5\
**Last updated:** [May 9, 2007, 8:25am UTC](https://www.ruby-forum.com/t/passing-info-to-classes-and-methods/103670 "2007-05-09T08:25:44Z")

</div>

Newbie here. Two steps forward and one back. I’m working through Pine’s book and maybe am jumping into areas beyond my knowledge. Some of you have seen an earlier version of this script. I’m trying to pass a value to …

---

## [Windows Mobile](https://www.ruby-forum.com/t/windows-mobile/103681)

<div class="topic-metadata">

**Author:** [@philpraxis](https://www.ruby-forum.com/u/philpraxis)\
**Replies:** 0\
**Last updated:** [May 9, 2007, 7:35am UTC](https://www.ruby-forum.com/t/windows-mobile/103681 "2007-05-09T07:35:36Z")

</div>

Hi, Has anyone already tried running a ruby program under Windows Mobile? Philippe

---

## [SyslogLogger 1.4.0 Released](https://www.ruby-forum.com/t/sysloglogger-1-4-0-released/114118)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [May 9, 2007, 5:42am UTC](https://www.ruby-forum.com/t/sysloglogger-1-4-0-released/114118 "2007-05-09T05:42:31Z")

</div>

SyslogLogger version 1.4.0 has been released! http://seattlerb.rubyforge.org/SyslogLogger SyslogLogger is a Logger replacement that logs to syslog. It is almost drop-in with a few caveats. Changes: == 1.4.0 / 2007-…

---

## [$BBg$-$J?t$NBg$^$+$J3d$j;;(B](https://www.ruby-forum.com/t/bbg-j-t-nbg-j3d-j-b/103122)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 16\
**Last updated:** [May 9, 2007, 3:20am UTC](https://www.ruby-forum.com/t/bbg-j-t-nbg-j3d-j-b/103122 "2007-05-09T03:20:20Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B \[ruby-core:11069\]e$B$GJs9p$,$"$C$?$N$G$9$,!“e(Brationale$B$NJ,;RJ,Jle(B e$B$,$”$^$j$KBg$-$$$He(BFloate$B$KJQ49$G$-$:!"K\\MhM-8B$NCM$J$N$K7k2Le(B e$B$,e(BNaNe$B$K$J$C$F$7$^$&$h$&$G$9!#e(…

---

## [Funny doc for setter](https://www.ruby-forum.com/t/funny-doc-for-setter/103418)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 3\
**Last updated:** [May 9, 2007, 2:40am UTC](https://www.ruby-forum.com/t/funny-doc-for-setter/103418 "2007-05-09T02:40:18Z")

</div>

Is it just me or is this funny? ------------------------------------------- Object#instance\_variable\_set obj.instance\_variable\_set(symbol, obj) =\> obj

---

## [String substitution](https://www.ruby-forum.com/t/string-substitution/103658)

<div class="topic-metadata">

**Author:** [@barrysfarm](https://www.ruby-forum.com/u/barrysfarm)\
**Replies:** 2\
**Last updated:** [May 9, 2007, 1:56am UTC](https://www.ruby-forum.com/t/string-substitution/103658 "2007-05-09T01:56:15Z")

</div>

Sorry if this question gets posted a lot. I’m unsure of the terminology, so my searches didn’t come up with anything. I’ve got a block of html coming in from the database that looks like this: #{@copy\_1} #{@copy\_2…

---

## [Unicode string conversion](https://www.ruby-forum.com/t/unicode-string-conversion/103393)

<div class="topic-metadata">

**Author:** [@airmind](https://www.ruby-forum.com/u/airmind)\
**Replies:** 3\
**Last updated:** [May 9, 2007, 1:53am UTC](https://www.ruby-forum.com/t/unicode-string-conversion/103393 "2007-05-09T01:53:15Z")

</div>

I’m reading a binary file in my program. It contains strings in the Windows Unicode format, which it says is stored as little-endian in the spefication. I’m loading it and trying to convert using Iconv, but I’m gettin…

---

## [Libmtag-ruby-0.1.0: simple music tagging library](https://www.ruby-forum.com/t/libmtag-ruby-0-1-0-simple-music-tagging-library/103664)

<div class="topic-metadata">

**Author:** [@fcruxen](https://www.ruby-forum.com/u/fcruxen)\
**Replies:** 0\
**Last updated:** [May 9, 2007, 12:55am UTC](https://www.ruby-forum.com/t/libmtag-ruby-0-1-0-simple-music-tagging-library/103664 "2007-05-09T00:55:12Z")

</div>

Hi everyone, I just released the first version of this new project which aims to provide library for music tagging with the simplest yet useful API. It’s done in C, and basically it’s a wrapper around taglib, so it s…

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

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