# Ruby

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

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

---

## [Class Names](https://www.ruby-forum.com/t/class-names/95994)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 4\
**Last updated:** [June 22, 2006, 1:06am UTC](https://www.ruby-forum.com/t/class-names/95994 "2006-06-22T01:06:24Z")

</div>

Hi, I was wondering how I can reffer to a class outside of my class, but it has the same name. Hopefully the following code will make it more clear: module Test class File def print\_file # I don’t want to call Tes…

---

## [Using parenthesis/barackets in ruby](https://www.ruby-forum.com/t/using-parenthesis-barackets-in-ruby/64039)

<div class="topic-metadata">

**Author:** [@jv2222](https://www.ruby-forum.com/u/jv2222)\
**Replies:** 5\
**Last updated:** [June 22, 2006, 12:34am UTC](https://www.ruby-forum.com/t/using-parenthesis-barackets-in-ruby/64039 "2006-06-22T00:34:22Z")

</div>

Hi, I’m new to Ruby, and have just started playing with it - nice. I note that one big complaint from a-lot of folks is the lack of parenthesis/barackets. Old habits die hard - for some of us :slight\_smile: I was cu…

---

## [Image question](https://www.ruby-forum.com/t/image-question/95987)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 1\
**Last updated:** [June 21, 2006, 10:34pm UTC](https://www.ruby-forum.com/t/image-question/95987 "2006-06-21T22:34:15Z")

</div>

I’m just starting out so i don’t know if i have something configured wrong or if i’m just overlooking something. Whenever I’m viewing the html stuff, the images point to the shared ‘images’ folder but half the time th…

---

## [Why this code doesn't work?](https://www.ruby-forum.com/t/why-this-code-doesnt-work/64068)

<div class="topic-metadata">

**Author:** [@amoeen](https://www.ruby-forum.com/u/amoeen)\
**Replies:** 2\
**Last updated:** [June 21, 2006, 8:37pm UTC](https://www.ruby-forum.com/t/why-this-code-doesnt-work/64068 "2006-06-21T20:37:04Z")

</div>

Hi, I am trying to replace all html tags and spaces with “\*” in a string. I tried this code: "as sd “.sub(/\<\[\\s\\S\]?\>| /,"”) It just replaces the 1st occurance. This code also doen’t work: "as sd “.sub(/\<\[\\s…

---

## [Correcting HTML in Ruby](https://www.ruby-forum.com/t/correcting-html-in-ruby/64054)

<div class="topic-metadata">

**Author:** [@roland](https://www.ruby-forum.com/u/roland)\
**Replies:** 2\
**Last updated:** [June 21, 2006, 8:30pm UTC](https://www.ruby-forum.com/t/correcting-html-in-ruby/64054 "2006-06-21T20:30:34Z")

</div>

Hello, I need to get content out of files which have incorrect HTML. Is there any library that does that? I have been looking for a HTML-\>XML library but all attempts I have made have been futile. Thanks for your ti…

---

## [Re: Correcting HTML in Ruby](https://www.ruby-forum.com/t/re-correcting-html-in-ruby/95984)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [June 21, 2006, 6:24pm UTC](https://www.ruby-forum.com/t/re-correcting-html-in-ruby/95984 "2006-06-21T18:24:49Z")

</div>

Dear Roland, Ruby-htmltools \_http://bike-nomad.com/ruby/\_ (http://bike-nomad.com/ruby/) doesn’t work for you? It may be difficult to work with incorrect html, if one doesn’t know what the errors look like - maybe …

---

## [Trouble with WIN32OLE obj, methods that return other objects](https://www.ruby-forum.com/t/trouble-with-win32ole-obj-methods-that-return-other-objects/64024)

<div class="topic-metadata">

**Author:** [@mhollender](https://www.ruby-forum.com/u/mhollender)\
**Replies:** 2\
**Last updated:** [June 21, 2006, 6:01pm UTC](https://www.ruby-forum.com/t/trouble-with-win32ole-obj-methods-that-return-other-objects/64024 "2006-06-21T18:01:37Z")

</div>

Dear Friends, Is is possible in Ruby to instantiate WIN32OLE objects that are returned by a method call on other WIN32OLE objects? The situation is the following. There is a NsComCom2.CommunicationComponent OLE (COM…

---

## [DABlog](https://www.ruby-forum.com/t/dablog/95982)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [June 21, 2006, 5:22pm UTC](https://www.ruby-forum.com/t/dablog/95982 "2006-06-21T17:22:58Z")

</div>

Hi – Just a quick note to announce the creation of DABlog, David A. Black’s Log, at http://dablog.rubypowerandlight.com. You can also reach it at http://dablog.rubypal.com, if you want to type less :slight\_smile: DA…

---

## [Re: Using parenthesis/barackets in ruby](https://www.ruby-forum.com/t/re-using-parenthesis-barackets-in-ruby/95980)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 21, 2006, 5:09pm UTC](https://www.ruby-forum.com/t/re-using-parenthesis-barackets-in-ruby/95980 "2006-06-21T17:09:07Z")

</div>

Since you asked… The following is much more readable to me than your example. Minor updates to satisfy my own readability scale: (snip) FORE!!! def print\_dir(path) Dir.foreach(path) do |f| puts “#{File.directo…

---

## [Qua](https://www.ruby-forum.com/t/qua/95938)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [June 21, 2006, 4:08pm UTC](https://www.ruby-forum.com/t/qua/95938 "2006-06-21T16:08:17Z")

</div>

In some of my documentation I have found this wording to be useful: for “metaclass” it is “class qua class” or “module qua class”. For an object’s singleton class, “object qua class”. I like quaclass. T.

---

## [\[SOLUTION\] #83 Short but Unique](https://www.ruby-forum.com/t/solution-83-short-but-unique/63959)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [June 21, 2006, 4:04pm UTC](https://www.ruby-forum.com/t/solution-83-short-but-unique/63959 "2006-06-21T16:04:45Z")

</div>

Here is my quick solution to quiz #83. First I find all possible abbreviations, then try to find unique ones for each string. If this isn’t possible, then it tries for at least a different abbreviation for each string…

---

## [RubyForge update (final)](https://www.ruby-forum.com/t/rubyforge-update-final/95958)

<div class="topic-metadata">

**Author:** [@rkoskela](https://www.ruby-forum.com/u/rkoskela)\
**Replies:** 10\
**Last updated:** [June 21, 2006, 3:26pm UTC](https://www.ruby-forum.com/t/rubyforge-update-final/95958 "2006-06-21T15:26:45Z")

</div>

OK…so Tom has pulled a full day and everything looks like its up and running. Please let us know if things are not as they should be. Best, Rich & Tom RubyForge Support Team

---

## [Problem with eRuby](https://www.ruby-forum.com/t/problem-with-eruby/63953)

<div class="topic-metadata">

**Author:** [@Firman\_W](https://www.ruby-forum.com/u/Firman_W)\
**Replies:** 3\
**Last updated:** [June 21, 2006, 2:49pm UTC](https://www.ruby-forum.com/t/problem-with-eruby/63953 "2006-06-21T14:49:26Z")

</div>

Hi Everyone, I already installed Ruby 1.8.4 preview 4 + mod\_fastcgi + mod\_ruby on Win XP box and configured the httpd.conf. Looks like something wrong there on eruby-run or somewhere, the cgi Ruby script is successful…

---

## [Announcing Beta Release of GP Ruby.NET Compiler](https://www.ruby-forum.com/t/announcing-beta-release-of-gp-ruby-net-compiler/63882)

<div class="topic-metadata">

**Author:** [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Replies:** 14\
**Last updated:** [June 21, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/announcing-beta-release-of-gp-ruby-net-compiler/63882 "2006-06-21T14:46:06Z")

</div>

We are pleased to announce the preliminary Beta release of the Gardens Point Ruby.NET compiler. Note: this is not just a Ruby/.NET bridge, nor a Ruby Interpreter implemented on .NET, but a true .NET compiler. The comp…

---

## [Ruby Weekly News 12th - 18th June 2006](https://www.ruby-forum.com/t/ruby-weekly-news-12th-18th-june-2006/64015)

<div class="topic-metadata">

**Author:** [@weliwarmer](https://www.ruby-forum.com/u/weliwarmer)\
**Replies:** 0\
**Last updated:** [June 21, 2006, 12:13pm UTC](https://www.ruby-forum.com/t/ruby-weekly-news-12th-18th-june-2006/64015 "2006-06-21T12:13:46Z")

</div>

http://www.rubyweeklynews.org/20060618.html Use the link above for a nicer version of this newsletter that’s formatted for the web, including links to threads and other sites. You can also subscribe to a newsletter-o…

---

## [Point me in the right direction](https://www.ruby-forum.com/t/point-me-in-the-right-direction/64008)

<div class="topic-metadata">

**Author:** [@sumwutdum](https://www.ruby-forum.com/u/sumwutdum)\
**Replies:** 2\
**Last updated:** [June 21, 2006, 11:09am UTC](https://www.ruby-forum.com/t/point-me-in-the-right-direction/64008 "2006-06-21T11:09:45Z")

</div>

Hello Ruby community! Let me start by saying, that this doesnâ??t really count as a technical question, but please humor me. The thing is, I came across this translated help file for a program called â??RPG maker XPâ…

---

## [Ruby2CExtension 0.1.0](https://www.ruby-forum.com/t/ruby2cextension-0-1-0/63685)

<div class="topic-metadata">

**Author:** [@Dominik\_B](https://www.ruby-forum.com/u/Dominik_B)\
**Replies:** 12\
**Last updated:** [June 21, 2006, 8:01am UTC](https://www.ruby-forum.com/t/ruby2cextension-0-1-0/63685 "2006-06-21T08:01:09Z")

</div>

Ruby2CExtension is a Ruby to C extension translator/compiler. It takes any Ruby source file, parses it using Ruby’s builtin parser and then translates the abstract syntax tree into “equivalent” C extension code. Mor…

---

## [Creating and using modules](https://www.ruby-forum.com/t/creating-and-using-modules/63983)

<div class="topic-metadata">

**Author:** [@parvg](https://www.ruby-forum.com/u/parvg)\
**Replies:** 2\
**Last updated:** [June 21, 2006, 7:27am UTC](https://www.ruby-forum.com/t/creating-and-using-modules/63983 "2006-06-21T07:27:29Z")

</div>

Hi, Newbie Question: I’m trying to write a simple module/class, in it i’m trying to capture the repetitive, that i can reuse to make my life easier. How do i setup this module, so i can make refernces to it? Where d…

---

## [How to get the response from a UDP socket](https://www.ruby-forum.com/t/how-to-get-the-response-from-a-udp-socket/63853)

<div class="topic-metadata">

**Author:** [@Hamid\_Rasoulian](https://www.ruby-forum.com/u/Hamid_Rasoulian)\
**Replies:** 9\
**Last updated:** [June 21, 2006, 3:21am UTC](https://www.ruby-forum.com/t/how-to-get-the-response-from-a-udp-socket/63853 "2006-06-21T03:21:00Z")

</div>

Problem. I set up a UDP socket connection. I send a message to the socket, and the destination device receives the message correctly and act upon it, so far so good, but the destination device would send a message b…

---

## [Ruby servers under daemontools (svc)](https://www.ruby-forum.com/t/ruby-servers-under-daemontools-svc/63876)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 1\
**Last updated:** [June 21, 2006, 3:17am UTC](https://www.ruby-forum.com/t/ruby-servers-under-daemontools-svc/63876 "2006-06-21T03:17:43Z")

</div>

I’m using ruby processes run under daemontools (on linux), and I’m not sure what’s going on with signals. Playing with a very simple ruby “server”: Signal.trap(“CONT”) { abort } while(1) do $stderr \<\< “errslp\\n” $…

---

## [Connect to an WSDL Service over HTTPS without authentication](https://www.ruby-forum.com/t/connect-to-an-wsdl-service-over-https-without-authentication/63990)

<div class="topic-metadata">

**Author:** [@pnomolos](https://www.ruby-forum.com/u/pnomolos)\
**Replies:** 0\
**Last updated:** [June 21, 2006, 1:52am UTC](https://www.ruby-forum.com/t/connect-to-an-wsdl-service-over-https-without-authentication/63990 "2006-06-21T01:52:36Z")

</div>

Alright, I’m in the process of attempting (key word here) to get Ruby talking via a WSDL service to Quickbooks. The caveat is this : quickbooks uses SSL to ensure that the tunnel is encrypted but either doesn’t use a …

---

## [Ruby on Rails + FastCGI + Mongrel + Apache2 on Windows](https://www.ruby-forum.com/t/ruby-on-rails-fastcgi-mongrel-apache2-on-windows/63988)

<div class="topic-metadata">

**Author:** [@Rida\_Al\_Barazi](https://www.ruby-forum.com/u/Rida_Al_Barazi)\
**Replies:** 0\
**Last updated:** [June 21, 2006, 12:54am UTC](https://www.ruby-forum.com/t/ruby-on-rails-fastcgi-mongrel-apache2-on-windows/63988 "2006-06-21T00:54:12Z")

</div>

Hi all, I’ve just published a simple tutorial on how to setup a local development environment of Ruby, Rails, FastCGI and Mongrel fully integrated with Apache 2, I know that there are some ready packages that server…

---

## [TrustCommerce Ruby API on Windows](https://www.ruby-forum.com/t/trustcommerce-ruby-api-on-windows/95959)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 0\
**Last updated:** [June 20, 2006, 11:51pm UTC](https://www.ruby-forum.com/t/trustcommerce-ruby-api-on-windows/95959 "2006-06-20T23:51:45Z")

</div>

Has anyone gotten the TrustCommerce API bindings for Ruby to work on windows? It is backed by a c library that you have to build with a makefile and is only supported for UNIX use. I have cygwin installed but still …

---

## [Binary operators, coerce, and non numeric types](https://www.ruby-forum.com/t/binary-operators-coerce-and-non-numeric-types/63976)

<div class="topic-metadata">

**Author:** [@polypus](https://www.ruby-forum.com/u/polypus)\
**Replies:** 1\
**Last updated:** [June 20, 2006, 11:32pm UTC](https://www.ruby-forum.com/t/binary-operators-coerce-and-non-numeric-types/63976 "2006-06-20T23:32:29Z")

</div>

okay, i understand how to define a coerce method, but i don’t think it can do what i want, in fact i think the only way to do what i want is rather ugly unless i drill down and actually patch the interpreter. class X …

---

## [Radius 0.5.1 -- Powerful Tag-Based Templates](https://www.ruby-forum.com/t/radius-0-5-1-powerful-tag-based-templates/95957)

<div class="topic-metadata">

**Author:** [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Replies:** 0\
**Last updated:** [June 20, 2006, 10:43pm UTC](https://www.ruby-forum.com/t/radius-0-5-1-powerful-tag-based-templates/95957 "2006-06-20T22:43:21Z")

</div>

I am pleased to announce the immediate release of Radius 0.5.1. Radius is a small, but powerful tag-based template language for Ruby inspired by the template languages used in MovableType \<www.movabletype.org\> and Tex…

---

## [Folder renaming](https://www.ruby-forum.com/t/folder-renaming/63974)

<div class="topic-metadata">

**Author:** [@kofuchs](https://www.ruby-forum.com/u/kofuchs)\
**Replies:** 2\
**Last updated:** [June 20, 2006, 10:36pm UTC](https://www.ruby-forum.com/t/folder-renaming/63974 "2006-06-20T22:36:43Z")

</div>

How can I rename a folder with Ruby?

---

## [RubyForge move update 2](https://www.ruby-forum.com/t/rubyforge-move-update-2/95956)

<div class="topic-metadata">

**Author:** [@rkoskela](https://www.ruby-forum.com/u/rkoskela)\
**Replies:** 0\
**Last updated:** [June 20, 2006, 10:29pm UTC](https://www.ruby-forum.com/t/rubyforge-move-update-2/95956 "2006-06-20T22:29:35Z")

</div>

RubyForge is now here: http://rubyforge.org -or- http://205.234.109.18 CVS/Subversion + anonymous checkout is now up A few more things then we think its complete. Best, Rich RubyForge Support Team

---

## [Re: Qua(ck)](https://www.ruby-forum.com/t/re-qua-ck/95947)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [June 20, 2006, 7:42pm UTC](https://www.ruby-forum.com/t/re-qua-ck/95947 "2006-06-20T19:42:58Z")

</div>

In some of my documentation I have found this wording to Hey, there’s actually some truth to that. The quaclass can be used to make an object quack like another class. :slight\_smile: T. And thus, sine quaclass …

---

## [RubyForge move update](https://www.ruby-forum.com/t/rubyforge-move-update/63932)

<div class="topic-metadata">

**Author:** [@rkoskela](https://www.ruby-forum.com/u/rkoskela)\
**Replies:** 0\
**Last updated:** [June 20, 2006, 7:13pm UTC](https://www.ruby-forum.com/t/rubyforge-move-update/63932 "2006-06-20T19:13:14Z")

</div>

RubyForge web interface is now up at: http://rubyforge.org -or- http://205.234.109.18 Gems should now be working As quickly as Tom is typing, the rest of the services are coming online as well. We will keep you pos…

---

## [Program Installers](https://www.ruby-forum.com/t/program-installers/63918)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 1\
**Last updated:** [June 20, 2006, 6:56pm UTC](https://www.ruby-forum.com/t/program-installers/63918 "2006-06-20T18:56:27Z")

</div>

Is there an easy way to make an installer for a ruby program? basicly we’ve got a custom testing framework built to run test scripts on, but to make it easier to install on multiple computers we want a installer to go…

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

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