# Ruby

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

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

---

## [Interfaces](https://www.ruby-forum.com/t/interfaces/87366)

<div class="topic-metadata">

**Author:** [@Ranjan\_Ghosh](https://www.ruby-forum.com/u/Ranjan_Ghosh)\
**Replies:** 0\
**Last updated:** [March 26, 2006, 8:21pm UTC](https://www.ruby-forum.com/t/interfaces/87366 "2006-03-26T20:21:45Z")

</div>

Hi everyone! Since I’ve switched to Linux I’ve been looking for a way to write applications again. On Windows I used Delphi. I looked at its Linux counterpart Kylix and didnt like it at all. Especially, I wanted to …

---

## [String to array as command line](https://www.ruby-forum.com/t/string-to-array-as-command-line/87327)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [March 26, 2006, 7:56pm UTC](https://www.ruby-forum.com/t/string-to-array-as-command-line/87327 "2006-03-26T19:56:19Z")

</div>

Hello, I can’t find a function that takes a string as an input, parses it and returns an array in the exactly same way as command line is parsed into ARGV array variable. Could you give me a hint? Thanks in advance …

---

## [Noob: use of the double colon](https://www.ruby-forum.com/t/noob-use-of-the-double-colon/87279)

<div class="topic-metadata">

**Author:** [@NuclearFusion](https://www.ruby-forum.com/u/NuclearFusion)\
**Replies:** 12\
**Last updated:** [March 26, 2006, 7:04pm UTC](https://www.ruby-forum.com/t/noob-use-of-the-double-colon/87279 "2006-03-26T19:04:58Z")

</div>

Hi, there seems to be more than one way to execute class methods. I’ve seen the form (I use the classmethod new as an example): newObject = Classname::new but also newObject = Classname.new Bothe seem to work OK. …

---

## [File.new raise an exception?](https://www.ruby-forum.com/t/file-new-raise-an-exception/87326)

<div class="topic-metadata">

**Author:** [@Jean-FranSSSSois\_Bo](https://www.ruby-forum.com/u/Jean-FranSSSSois_Bo)\
**Replies:** 2\
**Last updated:** [March 26, 2006, 6:58pm UTC](https://www.ruby-forum.com/t/file-new-raise-an-exception/87326 "2006-03-26T18:58:19Z")

</div>

Hello, I’m pretty new to ruby and I’ve written some code to parse apache logs, it works but now I want to store the result in a file. The problem is as follow (using irb) irb(main):001:0\> foo = File.open(“test”) Err…

---

## [Meaning of \*array](https://www.ruby-forum.com/t/meaning-of-array/55911)

<div class="topic-metadata">

**Author:** [@Axel\_Schlueter](https://www.ruby-forum.com/u/Axel_Schlueter)\
**Replies:** 10\
**Last updated:** [March 26, 2006, 6:43pm UTC](https://www.ruby-forum.com/t/meaning-of-array/55911 "2006-03-26T18:43:07Z")

</div>

Hi, When reading somes ruby source I saw the \*array\_name notation, an asterisk in front of an array variables. I was unable to look up its meaning in the pickaxe. What exactly does the asterisk do to the array ? Any…

---

## [File.open and File.new problem for a newbie](https://www.ruby-forum.com/t/file-open-and-file-new-problem-for-a-newbie/87328)

<div class="topic-metadata">

**Author:** [@Jean-Francois\_Boisv](https://www.ruby-forum.com/u/Jean-Francois_Boisv)\
**Replies:** 1\
**Last updated:** [March 26, 2006, 6:23pm UTC](https://www.ruby-forum.com/t/file-open-and-file-new-problem-for-a-newbie/87328 "2006-03-26T18:23:18Z")

</div>

Hello I’m pretty new to ruby and I’ve written some code to parse apache logs, it works but now I want to store the result in a file. The problem is as follow (using irb) irb(main):001:0\> foo = File.open(“test”) Errn…

---

## [Getting the module of a class](https://www.ruby-forum.com/t/getting-the-module-of-a-class/87287)

<div class="topic-metadata">

**Author:** [@nexflo](https://www.ruby-forum.com/u/nexflo)\
**Replies:** 0\
**Last updated:** [March 26, 2006, 5:30pm UTC](https://www.ruby-forum.com/t/getting-the-module-of-a-class/87287 "2006-03-26T17:30:07Z")

</div>

Hi! Can anybody think of a better way to get the module of a class in a module? eval(some\_class\_in\_a\_module.to\_s.gsub(/::\[^:\]\*$/, ‘’)) Thanks! Ciao! Florian

---

## [Really basic Ruby question](https://www.ruby-forum.com/t/really-basic-ruby-question/87175)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [March 26, 2006, 5:28pm UTC](https://www.ruby-forum.com/t/really-basic-ruby-question/87175 "2006-03-26T17:28:59Z")

</div>

I’m learning Ruby from the Learn to Program tutorial by Chris P… On http://pine.fm/LearnToProgram/?Chapter=01, he mentions saving a calc.rb file after typing in “puts 1 + 2” in my text editor , then going to the comma…

---

## [Saving Proc object in C extension](https://www.ruby-forum.com/t/saving-proc-object-in-c-extension/87285)

<div class="topic-metadata">

**Author:** [@victor123789](https://www.ruby-forum.com/u/victor123789)\
**Replies:** 2\
**Last updated:** [March 26, 2006, 5:04pm UTC](https://www.ruby-forum.com/t/saving-proc-object-in-c-extension/87285 "2006-03-26T17:04:57Z")

</div>

Hi all. The question is: can I save some Proc object in global variable of C extension? What I’ve tried: static VALUE g\_callback; //some callback-saving function: static VALUE save\_callback(VALUE self, VALUE proc) …

---

## [In search of an encoding guess module](https://www.ruby-forum.com/t/in-search-of-an-encoding-guess-module/87233)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 26, 2006, 10:24am UTC](https://www.ruby-forum.com/t/in-search-of-an-encoding-guess-module/87233 "2006-03-26T10:24:12Z")

</div>

does exist in ruby an Encode::Guess like the one available in Perl ? i’ve seen that exist in Rast but i’m unable to install it on MacOS X because of : checking Berkeley DB version… configure: error: 4.2.52 is required …

---

## [Ruby-FLTK 0.9.3](https://www.ruby-forum.com/t/ruby-fltk-0-9-3/55843)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 2\
**Last updated:** [March 26, 2006, 9:14am UTC](https://www.ruby-forum.com/t/ruby-fltk-0-9-3/55843 "2006-03-26T09:14:20Z")

</div>

Ruby-FLTK 0.9.3 , 2003-03-23 http://ruby-fltk.sourceforge.net/ “! want { right! } if this.wrong?” What is this?: Ruby-FLTK is a Ruby binding for the FLTK (Fast, Light Toolkit) GUI library. Release notes: Headlines…

---

## [File Auditing - Fast DB import and data manipulation](https://www.ruby-forum.com/t/file-auditing-fast-db-import-and-data-manipulation/84406)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [March 26, 2006, 8:30am UTC](https://www.ruby-forum.com/t/file-auditing-fast-db-import-and-data-manipulation/84406 "2006-03-26T08:30:04Z")

</div>

Hey Folks, Im looking for some suggestions here. I need to process 200 GZ compressed files each day that contain comma delimited information in the following format: HostName, FileName, DirName, Modified\_On Each fi…

---

## [The San Diego Ruby Users Group lives!](https://www.ruby-forum.com/t/the-san-diego-ruby-users-group-lives/87229)

<div class="topic-metadata">

**Author:** [@dazuma](https://www.ruby-forum.com/u/dazuma)\
**Replies:** 0\
**Last updated:** [March 26, 2006, 6:21am UTC](https://www.ruby-forum.com/t/the-san-diego-ruby-users-group-lives/87229 "2006-03-26T06:21:23Z")

</div>

The San Diego Ruby U. Group lives! After some false starts, we’ve decided to do this thing for real now. Calling all San Diego Rubyists! Hear hear, and look here for more info: http://glu.ttono.us/articles/2006/03/25/…

---

## [Ruby Help and Forum Usage](https://www.ruby-forum.com/t/ruby-help-and-forum-usage/87224)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 1\
**Last updated:** [March 26, 2006, 4:03am UTC](https://www.ruby-forum.com/t/ruby-help-and-forum-usage/87224 "2006-03-26T04:03:33Z")

</div>

Kind All, Two things. Which forum is for best for posting “Ruby coding problems” for which one seeks help and/or advice? Secondly, is there an instructional page that tells me what forums apply to what? The Forum …

---

## [Ruby vs gml](https://www.ruby-forum.com/t/ruby-vs-gml/87226)

<div class="topic-metadata">

**Author:** [@yahn](https://www.ruby-forum.com/u/yahn)\
**Replies:** 0\
**Last updated:** [March 26, 2006, 3:05am UTC](https://www.ruby-forum.com/t/ruby-vs-gml/87226 "2006-03-26T03:05:31Z")

</div>

I did a search figuring that something like this would have been posted before. But I typed in gml for the search and got no results, so I don’t know what else I should have searched for. I got the impression that ru…

---

## [Using Rake to compile FreeBASIC code](https://www.ruby-forum.com/t/using-rake-to-compile-freebasic-code/55451)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [March 26, 2006, 1:41am UTC](https://www.ruby-forum.com/t/using-rake-to-compile-freebasic-code/55451 "2006-03-26T01:41:32Z")

</div>

Hello list!, Maybe the subject sound strange, but FreeBASIC (http://www.freebasic.net) offer us native assembly-linked code that we currently use to drive a few special purpose dlls on windows. Folling Rake Tutorial,…

---

## [Newby Maze solution](https://www.ruby-forum.com/t/newby-maze-solution/55925)

<div class="topic-metadata">

**Author:** [@combas](https://www.ruby-forum.com/u/combas)\
**Replies:** 11\
**Last updated:** [March 26, 2006, 12:57am UTC](https://www.ruby-forum.com/t/newby-maze-solution/55925 "2006-03-26T00:57:37Z")

</div>

Hello folks, Tonight I tried out some of that good old extreme programming TDD stuff with mixed results. I was initially surprised how much it helped get things started but I noticed after a while that it kind of pet…

---

## [Re: Best Database For Ruby](https://www.ruby-forum.com/t/re-best-database-for-ruby/55958)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 0\
**Last updated:** [March 26, 2006, 12:44am UTC](https://www.ruby-forum.com/t/re-best-database-for-ruby/55958 "2006-03-26T00:44:16Z")

</div>

Take a look at PostrgreSQL (http://www.postgresql.org). True open source, very advanced, easy to configure and maintain. Gennady.

---

## [Bug: Syntax error when using 'or' keyword](https://www.ruby-forum.com/t/bug-syntax-error-when-using-or-keyword/86861)

<div class="topic-metadata">

**Author:** [@agnathan](https://www.ruby-forum.com/u/agnathan)\
**Replies:** 4\
**Last updated:** [March 25, 2006, 11:00pm UTC](https://www.ruby-forum.com/t/bug-syntax-error-when-using-or-keyword/86861 "2006-03-25T23:00:16Z")

</div>

I am getting a parse error when using the ‘or’ keyword. I do not get this error with ‘||’. $ ruby -v ruby 1.8.4 (2005-12-24) \[powerpc-darwin8.3.0\] $ ruby-yarv -v ruby 2.0.0 (Base: Ruby 1.9.0 2006-02-14) \[powerpc-dar…

---

## [Does ruby have database/network support built in?](https://www.ruby-forum.com/t/does-ruby-have-database-network-support-built-in/55947)

<div class="topic-metadata">

**Author:** [@yahn](https://www.ruby-forum.com/u/yahn)\
**Replies:** 3\
**Last updated:** [March 25, 2006, 10:30pm UTC](https://www.ruby-forum.com/t/does-ruby-have-database-network-support-built-in/55947 "2006-03-25T22:30:35Z")

</div>

I've been using GM for 5 years now, and last year I started to learn c++. I had been working on an online gave for over 2 years, and I started learning c++ specifically so I could have a faster server. I had the …

---

## [Space-Merchants and the future!](https://www.ruby-forum.com/t/space-merchants-and-the-future/55928)

<div class="topic-metadata">

**Author:** [@Gerben\_van\_de\_Wiel](https://www.ruby-forum.com/u/Gerben_van_de_Wiel)\
**Replies:** 4\
**Last updated:** [March 25, 2006, 10:21pm UTC](https://www.ruby-forum.com/t/space-merchants-and-the-future/55928 "2006-03-25T22:21:46Z")

</div>

I have been following the Thread about Ruby quiz number 71, with great intrest. I have a few question about the effort to develop some basic functionality of a space merchant game. -Has anyone already registered a p…

---

## [Credentials/auth in Ruby SOAP libs?](https://www.ruby-forum.com/t/credentials-auth-in-ruby-soap-libs/87178)

<div class="topic-metadata">

**Author:** [@Chris\_McMahon](https://www.ruby-forum.com/u/Chris_McMahon)\
**Replies:** 0\
**Last updated:** [March 25, 2006, 9:44pm UTC](https://www.ruby-forum.com/t/credentials-auth-in-ruby-soap-libs/87178 "2006-03-25T21:44:32Z")

</div>

Hi… In Java we can do something like this: lm = service.getlmapiSoap(); ((Stub)lm).setUsername(userName); ((Stub)lm).setPassword(password); In Perl we can do something like this: use SOAP::Lite ; sub SOAP::Transpo…

---

## [Installing rails](https://www.ruby-forum.com/t/installing-rails/55924)

<div class="topic-metadata">

**Author:** [@julian](https://www.ruby-forum.com/u/julian)\
**Replies:** 17\
**Last updated:** [March 25, 2006, 9:43pm UTC](https://www.ruby-forum.com/t/installing-rails/55924 "2006-03-25T21:43:53Z")

</div>

I am completely new to ruby and to rails, but have brought a book Agile Web D. with rails. I have sucessfully installed ruby, that went fine. then decided to install rails, so went to cmd prompt on my laptop and typed…

---

## [Object Query Language for Ruby?](https://www.ruby-forum.com/t/object-query-language-for-ruby/55922)

<div class="topic-metadata">

**Author:** [@victor123789](https://www.ruby-forum.com/u/victor123789)\
**Replies:** 4\
**Last updated:** [March 25, 2006, 5:26pm UTC](https://www.ruby-forum.com/t/object-query-language-for-ruby/55922 "2006-03-25T17:26:48Z")

</div>

Hello. Today I’ve stubled upon an interesting article at CodeProject: Karmencita: an object query language for .NET http://www.codeproject.com/csharp/Karmencita.asp The do something like // initialize the data sour…

---

## [Require a certain version of the ruby interpreter](https://www.ruby-forum.com/t/require-a-certain-version-of-the-ruby-interpreter/55899)

<div class="topic-metadata">

**Author:** [@Shea\_M](https://www.ruby-forum.com/u/Shea_M)\
**Replies:** 17\
**Last updated:** [March 25, 2006, 3:40pm UTC](https://www.ruby-forum.com/t/require-a-certain-version-of-the-ruby-interpreter/55899 "2006-03-25T15:40:17Z")

</div>

I would like to enforce ruby 1.8.4 or higher. if VERSION \< “1.8.4” raise “Invalid version” end Fails when VERSION is “1.8.10”. Yeah, I know I could write my own string comparison, but was wondering if there is a ca…

---

## [Drb over pipes](https://www.ruby-forum.com/t/drb-over-pipes/102889)

<div class="topic-metadata">

**Author:** [@Reto\_S](https://www.ruby-forum.com/u/Reto_S)\
**Replies:** 12\
**Last updated:** [March 25, 2006, 2:03pm UTC](https://www.ruby-forum.com/t/drb-over-pipes/102889 "2006-03-25T14:03:17Z")

</div>

Hi I’d like to establish a drb connection over ssh, preferably over the stdin/stdout channels which are provided by ssh itself. Is there a drb protocol which uses pipes? If not, is it easy to implement? I’ve seen th…

---

## [Syck parse error for JSON](https://www.ruby-forum.com/t/syck-parse-error-for-json/55927)

<div class="topic-metadata">

**Author:** [@Gavri\_F](https://www.ruby-forum.com/u/Gavri_F)\
**Replies:** 0\
**Last updated:** [March 25, 2006, 1:14pm UTC](https://www.ruby-forum.com/t/syck-parse-error-for-json/55927 "2006-03-25T13:14:18Z")

</div>

Hi, YAML emits a parse error for require ‘yaml’ p YAML::load(’{“test”:1}’) because there isn’t a space after the colon. Is there an option YAML provides that lets me load any JSON? Do I need to download and use a J…

---

## [Regarding Testing Mixins](https://www.ruby-forum.com/t/regarding-testing-mixins/86972)

<div class="topic-metadata">

**Author:** [@sjames](https://www.ruby-forum.com/u/sjames)\
**Replies:** 3\
**Last updated:** [March 25, 2006, 6:14am UTC](https://www.ruby-forum.com/t/regarding-testing-mixins/86972 "2006-03-25T06:14:07Z")

</div>

How does one write a unit test for a mixin? I gathered since our unit test is a class (TestClassName \< Test::Unit::TestCase), we could just include said module into said class. However, I’ve ran into a problem. Supp…

---

## [Sa-daily-report](https://www.ruby-forum.com/t/sa-daily-report/55863)

<div class="topic-metadata">

**Author:** [@Tony\_Kemp](https://www.ruby-forum.com/u/Tony_Kemp)\
**Replies:** 1\
**Last updated:** [March 25, 2006, 4:24am UTC](https://www.ruby-forum.com/t/sa-daily-report/55863 "2006-03-25T04:24:07Z")

</div>

Hi all, Thought I would announce the release of a small ruby script that that I originally developed at a previous job and have since improved upon. This script is designed to be run as a daily cron job on a server th…

---

## [C extensions question](https://www.ruby-forum.com/t/c-extensions-question/55709)

<div class="topic-metadata">

**Author:** [@Jared\_R](https://www.ruby-forum.com/u/Jared_R)\
**Replies:** 6\
**Last updated:** [March 25, 2006, 2:49am UTC](https://www.ruby-forum.com/t/c-extensions-question/55709 "2006-03-25T02:49:03Z")

</div>

Hi all, I haven’t done any “real” work in C in nearly 10 years and I’m still learning Ruby, so it’s quite possible that I’m just doing something dumb, but I’m stuck here. I’m trying to call Ingres database code from …

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

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