# Ruby

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

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

---

## [Rb\_str\_replace not public?](https://www.ruby-forum.com/t/rb-str-replace-not-public/49930)

<div class="topic-metadata">

**Author:** [@djberg96](https://www.ruby-forum.com/u/djberg96)\
**Replies:** 2\
**Last updated:** [December 10, 2005, 5:04pm UTC](https://www.ruby-forum.com/t/rb-str-replace-not-public/49930 "2005-12-10T17:04:11Z")

</div>

Hi all, I wanted to use rb\_str\_replace for a destructive method in a C extension I’m using. However, it doesn’t appear to be public. Why not? And what should I use instead? I poked around intern.h a bit, and saw a…

---

## [Langhelp-0.9.3](https://www.ruby-forum.com/t/langhelp-0-9-3/97110)

<div class="topic-metadata">

**Author:** [@rubikitch](https://www.ruby-forum.com/u/rubikitch)\
**Replies:** 0\
**Last updated:** [December 10, 2005, 5:00pm UTC](https://www.ruby-forum.com/t/langhelp-0-9-3/97110 "2005-12-10T17:00:08Z")

</div>

Hi, == Abstract Langhelp creates an index of documents of various programming languages and shell commands. Languages enables you to search documents instantly in Emacs. If you are a programmer, then you may sometim…

---

## [El4r-1.0.2 - EmacsLisp for Ruby](https://www.ruby-forum.com/t/el4r-1-0-2-emacslisp-for-ruby/49942)

<div class="topic-metadata">

**Author:** [@rubikitch](https://www.ruby-forum.com/u/rubikitch)\
**Replies:** 0\
**Last updated:** [December 10, 2005, 5:00pm UTC](https://www.ruby-forum.com/t/el4r-1-0-2-emacslisp-for-ruby/49942 "2005-12-10T17:00:07Z")

</div>

Hi, El4r enables you to write Emacs programs in Ruby as well as in EmacsLisp. I call the Ruby language to manipulate Emacs \`EmacsRuby’. El4r and Test::Unit enables you to test EmacsLisp/EmacsRuby programs automatica…

---

## [Rctool-1.1.1](https://www.ruby-forum.com/t/rctool-1-1-1/97112)

<div class="topic-metadata">

**Author:** [@rubikitch](https://www.ruby-forum.com/u/rubikitch)\
**Replies:** 0\
**Last updated:** [December 10, 2005, 4:55pm UTC](https://www.ruby-forum.com/t/rctool-1-1-1/97112 "2005-12-10T16:55:57Z")

</div>

Hi, == Abstract RCtool is a small tool which makes/updates rcfiles automatically. There is a rcfile in software each. For example, it is .zshrc in zsh, .emacs in Emacs and so on. Please think about the scene which i…

---

## [Gem problem behind proxy with authorization](https://www.ruby-forum.com/t/gem-problem-behind-proxy-with-authorization/49937)

<div class="topic-metadata">

**Author:** [@anatol.pomozov](https://www.ruby-forum.com/u/anatol.pomozov)\
**Replies:** 0\
**Last updated:** [December 10, 2005, 4:51pm UTC](https://www.ruby-forum.com/t/gem-problem-behind-proxy-with-authorization/49937 "2005-12-10T16:51:45Z")

</div>

Hi. I am trying again to pick up question about Gem behind proxy with authorization. Problem related to http://rubyforge.org/tracker/index.php?func=detail&aid=1289&group\_id=126&atid=575 Seems that is most requestabl…

---

## [Ordered/sorted hash](https://www.ruby-forum.com/t/ordered-sorted-hash/49783)

<div class="topic-metadata">

**Author:** [@robert\_kuzelj](https://www.ruby-forum.com/u/robert_kuzelj)\
**Replies:** 20\
**Last updated:** [December 10, 2005, 4:15pm UTC](https://www.ruby-forum.com/t/ordered-sorted-hash/49783 "2005-12-10T16:15:04Z")

</div>

hi, is there anywhere a class that does soemthing akin to java.util.SortedMap? that is sorting and iterating over the hash in the order of its keys. i had a look into facets dictionary but that does only preserve t…

---

## [Do/end vs braces](https://www.ruby-forum.com/t/do-end-vs-braces/64030)

<div class="topic-metadata">

**Author:** [@slitt](https://www.ruby-forum.com/u/slitt)\
**Replies:** 29\
**Last updated:** [December 10, 2005, 12:46pm UTC](https://www.ruby-forum.com/t/do-end-vs-braces/64030 "2005-12-10T12:46:10Z")

</div>

Hi all, It looks to me like when you use an iterator (each for instance), you can make the block either from a do/end pair, or from curly braces. All things being equal, I’d greatly prefer to use do/end. Are there a…

---

## [Injecting dynamic methods into a class](https://www.ruby-forum.com/t/injecting-dynamic-methods-into-a-class/60813)

<div class="topic-metadata">

**Author:** [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Replies:** 71\
**Last updated:** [December 10, 2005, 11:36am UTC](https://www.ruby-forum.com/t/injecting-dynamic-methods-into-a-class/60813 "2005-12-10T11:36:50Z")

</div>

hi All, I posted this message to the Ruby on Rails group yesterday, but I suppose it belongs here instead. I’ve been trying to wrestle dynamic code generation into place for a week now with no success. What I want i…

---

## [...rubygems... in require: no such file to load](https://www.ruby-forum.com/t/rubygems-in-require-no-such-file-to-load/49759)

<div class="topic-metadata">

**Author:** [@wybo](https://www.ruby-forum.com/u/wybo)\
**Replies:** 2\
**Last updated:** [December 10, 2005, 11:04am UTC](https://www.ruby-forum.com/t/rubygems-in-require-no-such-file-to-load/49759 "2005-12-10T11:04:17Z")

</div>

I have a script requiring rubygems, rio, and more, plus a module in a non-standard directory. It works fine on my machine, but not on the machine of a friend. Here’s the important part of my module require ‘session’ …

---

## [Phoenix.rb : Phoenix Ruby Users Group](https://www.ruby-forum.com/t/phoenix-rb-phoenix-ruby-users-group/49928)

<div class="topic-metadata">

**Author:** [@james\_b](https://www.ruby-forum.com/u/james_b)\
**Replies:** 0\
**Last updated:** [December 10, 2005, 7:04am UTC](https://www.ruby-forum.com/t/phoenix-rb-phoenix-ruby-users-group/49928 "2005-12-10T07:04:21Z")

</div>

The recent Refresh Phoenix\[0\] meeting earlier this month went extremely well, not the least because I announced plans for rebooting/refreshing the Phoenix Ruby U. Group, and got a strong response from the people there…

---

## [Win32OLE: Output parameters, Dispatch IDs](https://www.ruby-forum.com/t/win32ole-output-parameters-dispatch-ids/49677)

<div class="topic-metadata">

**Author:** [@dave](https://www.ruby-forum.com/u/dave)\
**Replies:** 10\
**Last updated:** [December 10, 2005, 6:35am UTC](https://www.ruby-forum.com/t/win32ole-output-parameters-dispatch-ids/49677 "2005-12-10T06:35:52Z")

</div>

Hi, x1 recently asked about an issue with a WMI script that had an output parameter. I guess you can get a result from an output parameter via WIN32OLE#\_invoke (with VT\_BYREF?) if you have the Dispatch ID for the me…

---

## [Customizing erb's recognized tags](https://www.ruby-forum.com/t/customizing-erbs-recognized-tags/49918)

<div class="topic-metadata">

**Author:** [@ljw1001](https://www.ruby-forum.com/u/ljw1001)\
**Replies:** 7\
**Last updated:** [December 10, 2005, 3:44am UTC](https://www.ruby-forum.com/t/customizing-erbs-recognized-tags/49918 "2005-12-10T03:44:29Z")

</div>

Hi Does anyone know if it’s possible to change the tags that erb recognizes so that for instance, I can have it replace on #{} instead of \<%= %\> ? If so, could you point me an example of how it’s done? thanks. tha…

---

## [Semi-OT: Red Crystal - Ruby is taking off everywhere](https://www.ruby-forum.com/t/semi-ot-red-crystal-ruby-is-taking-off-everywhere/49919)

<div class="topic-metadata">

**Author:** [@phurley](https://www.ruby-forum.com/u/phurley)\
**Replies:** 0\
**Last updated:** [December 10, 2005, 3:03am UTC](https://www.ruby-forum.com/t/semi-ot-red-crystal-ruby-is-taking-off-everywhere/49919 "2005-12-10T03:03:37Z")

</div>

The Red Crystal flag is the new politically neutral emblem approved by the International Red Cross and Red Crescent Movement.

---

## [Langhelp-0.9.2](https://www.ruby-forum.com/t/langhelp-0-9-2/97074)

<div class="topic-metadata">

**Author:** [@rubikitch](https://www.ruby-forum.com/u/rubikitch)\
**Replies:** 0\
**Last updated:** [December 10, 2005, 2:39am UTC](https://www.ruby-forum.com/t/langhelp-0-9-2/97074 "2005-12-10T02:39:10Z")

</div>

Hi, == Abstract Langhelp creates an index of documents of various programming languages and shell commands. Languages enables you to search documents instantly in Emacs. If you are a programmer, then you may sometim…

---

## [Multipackage Gems](https://www.ruby-forum.com/t/multipackage-gems/97018)

<div class="topic-metadata">

**Author:** [@transfire](https://www.ruby-forum.com/u/transfire)\
**Replies:** 6\
**Last updated:** [December 10, 2005, 12:48am UTC](https://www.ruby-forum.com/t/multipackage-gems/97018 "2005-12-10T00:48:59Z")

</div>

I have a multipackage project layout: workspace/ setup.rb packages/ proj1/ lib/ proj2/ lib/ … setup.rb of course was designed to handle this, but how do I create a gem that includes all the packages? I have cre…

---

## [Different methods for initializing one object?](https://www.ruby-forum.com/t/different-methods-for-initializing-one-object/49905)

<div class="topic-metadata">

**Author:** [@kibleur.christophe](https://www.ruby-forum.com/u/kibleur.christophe)\
**Replies:** 6\
**Last updated:** [December 10, 2005, 12:03am UTC](https://www.ruby-forum.com/t/different-methods-for-initializing-one-object/49905 "2005-12-10T00:03:53Z")

</div>

Hi, let’s say I’ve got a class Point2D to write, it must have 2 methods to initialize : one with cartesian coordinates i.e : p = Point2D.new(x,y) given the numbers x and y; a second with polar coordinates i.e : p = …

---

## [Log file analyzer](https://www.ruby-forum.com/t/log-file-analyzer/49877)

<div class="topic-metadata">

**Author:** [@michael.ulm](https://www.ruby-forum.com/u/michael.ulm)\
**Replies:** 3\
**Last updated:** [December 9, 2005, 11:23pm UTC](https://www.ruby-forum.com/t/log-file-analyzer/49877 "2005-12-09T23:23:02Z")

</div>

I want to analyze a log file using ruby. What is the most Ruby-like method to check the file for new entries (they will be appended to the file) and then get those new entries into the system? I have a feeling that t…

---

## [Unspecified Syntax Error](https://www.ruby-forum.com/t/unspecified-syntax-error/49909)

<div class="topic-metadata">

**Author:** [@StarLion](https://www.ruby-forum.com/u/StarLion)\
**Replies:** 6\
**Last updated:** [December 9, 2005, 11:10pm UTC](https://www.ruby-forum.com/t/unspecified-syntax-error/49909 "2005-12-09T23:10:48Z")

</div>

def MakeBoard rcount = 0 puts “Push enter, then begin input. (For Input Format Compliance, extra enter key is necessary)” gets board = \[0,0,0,0,0,0,0,0,0\] 9.times do instr = gets board\[rcount\] = \[instr\[0\],instr\[…

---

## [Need to run setup.rb after 'gem install facets'](https://www.ruby-forum.com/t/need-to-run-setup-rb-after-gem-install-facets/49908)

<div class="topic-metadata">

**Author:** [@akonsu](https://www.ruby-forum.com/u/akonsu)\
**Replies:** 2\
**Last updated:** [December 9, 2005, 11:06pm UTC](https://www.ruby-forum.com/t/need-to-run-setup-rb-after-gem-install-facets/49908 "2005-12-09T23:06:43Z")

</div>

hello, i just installed facets thus: ‘gem install facets’ and was expecting it to work. but still could not require ‘facets’. only after running setup.rb in the gem’s root directory did it start to work. is this a bu…

---

## [Not initialized](https://www.ruby-forum.com/t/not-initialized/49815)

<div class="topic-metadata">

**Author:** [@nonono](https://www.ruby-forum.com/u/nonono)\
**Replies:** 6\
**Last updated:** [December 9, 2005, 10:25pm UTC](https://www.ruby-forum.com/t/not-initialized/49815 "2005-12-09T22:25:54Z")

</div>

The class below seems to do exactly what I want it to do provided Files.read\_file is called first. But it would be nice not to have to call Files.read\_file externally at all and have the other two methods automatical…

---

## [Home of the gems?](https://www.ruby-forum.com/t/home-of-the-gems/49834)

<div class="topic-metadata">

**Author:** [@railsinator](https://www.ruby-forum.com/u/railsinator)\
**Replies:** 6\
**Last updated:** [December 9, 2005, 9:28pm UTC](https://www.ruby-forum.com/t/home-of-the-gems/49834 "2005-12-09T21:28:48Z")

</div>

I’m trying to understand how gems are loaded. Please help. A little background: I decided to do some rails development work on a debian system. I didn’t think rails was up to date, so I tried to do a ‘gem update rails…

---

## [Detecting control-c?](https://www.ruby-forum.com/t/detecting-control-c/96685)

<div class="topic-metadata">

**Author:** [@williamerubin](https://www.ruby-forum.com/u/williamerubin)\
**Replies:** 5\
**Last updated:** [December 9, 2005, 7:44pm UTC](https://www.ruby-forum.com/t/detecting-control-c/96685 "2005-12-09T19:44:09Z")

</div>

How does one detect Control-C? I know that it raises an Interrupt, but there are other things that are also Interrupts (such as Timeout::Error). The documentation at ruby-doc.org doesn’t list any details of class Int…

---

## [Article on Ruby at Apress Blog](https://www.ruby-forum.com/t/article-on-ruby-at-apress-blog/52997)

<div class="topic-metadata">

**Author:** [@pat.eyler](https://www.ruby-forum.com/u/pat.eyler)\
**Replies:** 0\
**Last updated:** [December 9, 2005, 7:09pm UTC](https://www.ruby-forum.com/t/article-on-ruby-at-apress-blog/52997 "2005-12-09T19:09:34Z")

</div>

Nice little blog entry about getting started with Ruby and Fitness, by Cory F. http://ablog.apress.com/?p=782#more-782

---

## [RWB: call for feedback|developers](https://www.ruby-forum.com/t/rwb-call-for-feedback-developers/49884)

<div class="topic-metadata">

**Author:** [@pat.eyler](https://www.ruby-forum.com/u/pat.eyler)\
**Replies:** 0\
**Last updated:** [December 9, 2005, 5:14pm UTC](https://www.ruby-forum.com/t/rwb-call-for-feedback-developers/49884 "2005-12-09T17:14:00Z")

</div>

What is RWB RWB, the Ruby Web Bench, provides a simple way to manage a performance and load tests suite for your webserver. Unlike ab, by which it was inspired, it will allow you to build a collection of test URLs …

---

## [Some quick questions](https://www.ruby-forum.com/t/some-quick-questions/49856)

<div class="topic-metadata">

**Author:** [@rosco](https://www.ruby-forum.com/u/rosco)\
**Replies:** 7\
**Last updated:** [December 9, 2005, 4:37pm UTC](https://www.ruby-forum.com/t/some-quick-questions/49856 "2005-12-09T16:37:11Z")

</div>

Hi, I have a couple more questions. Hopefully they’re not so dumb this time. I need a hash that maintains insertion order. In Java, I’d use LinkedHashMap. Does Ruby have one? I like documentation. So far, Rdoc is…

---

## [WWW:Mechanize history](https://www.ruby-forum.com/t/www-mechanize-history/49873)

<div class="topic-metadata">

**Author:** [@narf968](https://www.ruby-forum.com/u/narf968)\
**Replies:** 1\
**Last updated:** [December 9, 2005, 4:20pm UTC](https://www.ruby-forum.com/t/www-mechanize-history/49873 "2005-12-09T16:20:49Z")

</div>

Hi! Anyone know if there is a way to tell mechanize not to save a history? Or maybe how to nil-ify? I am saving a mechanize agent using yaml and I don’t need all that extra history.

---

## [Extend an object using string as module name?](https://www.ruby-forum.com/t/extend-an-object-using-string-as-module-name/64437)

<div class="topic-metadata">

**Author:** [@akonsu](https://www.ruby-forum.com/u/akonsu)\
**Replies:** 5\
**Last updated:** [December 9, 2005, 4:16pm UTC](https://www.ruby-forum.com/t/extend-an-object-using-string-as-module-name/64437 "2005-12-09T16:16:43Z")

</div>

hello, is this a proper way to do it: name = ‘MyModule’ o = Object.new o.extend(Module.const\_get(name)) are there better ways? thanks konstantin

---

## [New guy... Intoduction and first question on some direction](https://www.ruby-forum.com/t/new-guy-intoduction-and-first-question-on-some-direction/49786)

<div class="topic-metadata">

**Author:** [@muychingon](https://www.ruby-forum.com/u/muychingon)\
**Replies:** 15\
**Last updated:** [December 9, 2005, 4:08pm UTC](https://www.ruby-forum.com/t/new-guy-intoduction-and-first-question-on-some-direction/49786 "2005-12-09T16:08:28Z")

</div>

Hi everyone. I’m new to these forums. I am sysadmin in California and I’m learning Ruby. I’ve been working on an automated web application testing using WATIR and I really like this language. Its the first one I’ve …

---

## [Where has my output gone?](https://www.ruby-forum.com/t/where-has-my-output-gone/49861)

<div class="topic-metadata">

**Author:** [@andrew](https://www.ruby-forum.com/u/andrew)\
**Replies:** 4\
**Last updated:** [December 9, 2005, 4:04pm UTC](https://www.ruby-forum.com/t/where-has-my-output-gone/49861 "2005-12-09T16:04:23Z")

</div>

I run my ruby script, and it produces lots of output I run the same script, but redirect the output to a file (bash shell using \>), no output! Whats going on? I just know there is a simple answer, and I have a naggi…

---

## [Build array of possible combinations](https://www.ruby-forum.com/t/build-array-of-possible-combinations/49670)

<div class="topic-metadata">

**Author:** [@thoepfner](https://www.ruby-forum.com/u/thoepfner)\
**Replies:** 4\
**Last updated:** [December 9, 2005, 3:43pm UTC](https://www.ruby-forum.com/t/build-array-of-possible-combinations/49670 "2005-12-09T15:43:57Z")

</div>

Hi, I’m looking for an easy way to convert a string representing a boolean expression like “(a and (b or c) or d” to an Array of Arrays (representing sets) representing all possible valid combinations like: \[\[“a”,“…

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

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