# Ruby

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

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

---

## [Where to find the help document?](https://www.ruby-forum.com/t/where-to-find-the-help-document/179329)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 6\
**Last updated:** [November 22, 2009, 11:37am UTC](https://www.ruby-forum.com/t/where-to-find-the-help-document/179329 "2009-11-22T11:37:19Z")

</div>

Hello, How to find ruby’s help document? for example, I want to know what’s the difference between two functions of “p” and “print”, but don’t know where to search. Thanks.

---

## [Ironruby RC1](https://www.ruby-forum.com/t/ironruby-rc1/179291)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 9\
**Last updated:** [November 22, 2009, 11:32am UTC](https://www.ruby-forum.com/t/ironruby-rc1/179291 "2009-11-22T11:32:25Z")

</div>

Hi I don’t get any changes coming in for the repo for the last 3 days, are those changes that make up RC1 in? Then on a side note I’m still unable to run xmpp4r with IronRuby. it should work but gets stuck in waitin…

---

## [Same name for class and instance method](https://www.ruby-forum.com/t/same-name-for-class-and-instance-method/179325)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 1\
**Last updated:** [November 22, 2009, 11:30am UTC](https://www.ruby-forum.com/t/same-name-for-class-and-instance-method/179325 "2009-11-22T11:30:40Z")

</div>

Newbie here. Consider the following two “say” methods. irb(main):020:0\> class Test2 irb(main):021:1\> def self.say(block) irb(main):022:2\> block.call(self.class) irb(main):023:2\> end irb(main):024:1\> def s…

---

## [10 Reasons Why YOU Should Join Us](https://www.ruby-forum.com/t/10-reasons-why-you-should-join-us/179326)

<div class="topic-metadata">

**Author:** [@ZULKIFLI](https://www.ruby-forum.com/u/ZULKIFLI)\
**Replies:** 0\
**Last updated:** [November 22, 2009, 9:40am UTC](https://www.ruby-forum.com/t/10-reasons-why-you-should-join-us/179326 "2009-11-22T09:40:39Z")

</div>

10 Reasons Why YOU Should Join Us The Most Proven Leisure Internet Business Free Registration Start Earning As Soon As You Join Weekly Unlimited Income Making Money Around The Clock Without Leav…

---

## [Order of evaluation and precedence](https://www.ruby-forum.com/t/order-of-evaluation-and-precedence/179317)

<div class="topic-metadata">

**Author:** [@Seebs](https://www.ruby-forum.com/u/Seebs)\
**Replies:** 10\
**Last updated:** [November 22, 2009, 7:54am UTC](https://www.ruby-forum.com/t/order-of-evaluation-and-precedence/179317 "2009-11-22T07:54:44Z")

</div>

In The Ruby P.ming Language, it is asserted that order of evaluation is controlled by precedence. However, this is often asserted in books about C, where it’s definitely not true. Is it actually true in Ruby? In ot…

---

## [Boson 0.2.1 - A slew of new features](https://www.ruby-forum.com/t/boson-0-2-1-a-slew-of-new-features/179321)

<div class="topic-metadata">

**Author:** [@ghorner](https://www.ruby-forum.com/u/ghorner)\
**Replies:** 1\
**Last updated:** [November 22, 2009, 5:55am UTC](https://www.ruby-forum.com/t/boson-0-2-1-a-slew-of-new-features/179321 "2009-11-22T05:55:49Z")

</div>

Hi, Recently reased boson 0.2.1. New features include: Custom option types Pipe options New global :query option Local libraries I went over the important new features in depth in and Gabriel

---

## [Loofah 0.4.0 Released](https://www.ruby-forum.com/t/loofah-0-4-0-released/179324)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 0\
**Last updated:** [November 22, 2009, 5:36am UTC](https://www.ruby-forum.com/t/loofah-0-4-0-released/179324 "2009-11-22T05:36:38Z")

</div>

loofah version 0.4.0 has been released! http://loofah.rubyforge.org http://rubyforge.org/projects/loofah http://github.com/flavorjones/loofah Loofah is a general library for manipulating HTML/XML documents and fragme…

---

## [IronRuby::Clr modules](https://www.ruby-forum.com/t/ironruby-clr-modules/179294)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 1\
**Last updated:** [November 22, 2009, 5:25am UTC](https://www.ruby-forum.com/t/ironruby-clr-modules/179294 "2009-11-22T05:25:30Z")

</div>

Hi, I’m looking at the IronRuby class and its members. I’ve run into the IronRuby::Clr module that contains modules like BigInteger, Float and String. I know that, for example, IronRuby::Clr::BigInteger is included i…

---

## [Problem step-in debug through instance\_eval](https://www.ruby-forum.com/t/problem-step-in-debug-through-instance-eval/179301)

<div class="topic-metadata">

**Author:** [@alexandremutel](https://www.ruby-forum.com/u/alexandremutel)\
**Replies:** 2\
**Last updated:** [November 21, 2009, 11:47pm UTC](https://www.ruby-forum.com/t/problem-step-in-debug-through-instance-eval/179301 "2009-11-21T23:47:29Z")

</div>

I’m trying to debug an external dsl and i have found some problems to step in the code (at least under windows) I have a main.rb file (file are attached in test\_debug.7z) : puts “In Main before eval” instance\_eval(Fi…

---

## [Extending ruby with c++ on windows](https://www.ruby-forum.com/t/extending-ruby-with-c-on-windows/179197)

<div class="topic-metadata">

**Author:** [@code1n](https://www.ruby-forum.com/u/code1n)\
**Replies:** 9\
**Last updated:** [November 21, 2009, 11:45pm UTC](https://www.ruby-forum.com/t/extending-ruby-with-c-on-windows/179197 "2009-11-21T23:45:01Z")

</div>

hello everyone i need help with extending ruby with c on windows i’ve got ruby with version 1.9.1 \[i386-mingw32\] and mingw32-make with versions 3.8 and 3.81 i wrote a simply cpp file and extconf.rb as is described he…

---

## [Unicorn 0.95.1 - we \<3 symlink deployments more](https://www.ruby-forum.com/t/unicorn-0-95-1-we-3-symlink-deployments-more/179315)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [November 21, 2009, 11:01pm UTC](https://www.ruby-forum.com/t/unicorn-0-95-1-we-3-symlink-deployments-more/179315 "2009-11-21T23:01:31Z")

</div>

Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels. Slow clients should only be ser…

---

## [\[ANN\] Scuby 0.1 - Scala-JRuby integration](https://www.ruby-forum.com/t/ann-scuby-0-1-scala-jruby-integration/179313)

<div class="topic-metadata">

**Author:** [@a\_mc](https://www.ruby-forum.com/u/a_mc)\
**Replies:** 0\
**Last updated:** [November 21, 2009, 10:37pm UTC](https://www.ruby-forum.com/t/ann-scuby-0-1-scala-jruby-integration/179313 "2009-11-21T22:37:32Z")

</div>

Hi everyone, I am proud to release my first open-source Ruby and Scala project: Scuby. From the README: Scuby is a thin integration layer between Scala and JRuby. It aims to provide DSLs for Scala and JRuby to ease i…

---

## [Nailgun slower than stock JRuby?](https://www.ruby-forum.com/t/nailgun-slower-than-stock-jruby/179307)

<div class="topic-metadata">

**Author:** [@walkins](https://www.ruby-forum.com/u/walkins)\
**Replies:** 0\
**Last updated:** [November 21, 2009, 7:20pm UTC](https://www.ruby-forum.com/t/nailgun-slower-than-stock-jruby/179307 "2009-11-21T19:20:55Z")

</div>

I’ve been experimenting with using Nailgun to speed up rake tasks, to make developing a Rails app on JRuby a little more pleasant. But the odd thing is, Nailgun actually seems to be slower at most tasks than just ru…

---

## [Exact (LISP-ish) calculations in Ruby?](https://www.ruby-forum.com/t/exact-lisp-ish-calculations-in-ruby/179150)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 24\
**Last updated:** [November 21, 2009, 7:01pm UTC](https://www.ruby-forum.com/t/exact-lisp-ish-calculations-in-ruby/179150 "2009-11-21T19:01:36Z")

</div>

Has anyone written a gem for exact calculations? The kind one would find on a LISP REPL, or when using your average HP scientific calculator? 3 / 4 =\> 3/4 3 / 6 =\> 1/2 sqrt(2) =\> sqrt(2) sqrt(4) 2 I c…

---

## [Removing optional white space](https://www.ruby-forum.com/t/removing-optional-white-space/179302)

<div class="topic-metadata">

**Author:** [@unebaguettesvp](https://www.ruby-forum.com/u/unebaguettesvp)\
**Replies:** 8\
**Last updated:** [November 21, 2009, 6:27pm UTC](https://www.ruby-forum.com/t/removing-optional-white-space/179302 "2009-11-21T18:27:04Z")

</div>

People, I want to change: To: phil or: To:phil into: phil I can do this with two gsubs - is it possible to do it with one? Thanks, Phil. Philip R. GPO Box 3411 Sydney NSW 2001 Australia E-mail: removed\_em…

---

## [\[ANN\] Using JRuby+Java to prototype audio VST plugins](https://www.ruby-forum.com/t/ann-using-jruby-java-to-prototype-audio-vst-plugins/179176)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 7\
**Last updated:** [November 21, 2009, 2:51pm UTC](https://www.ruby-forum.com/t/ann-using-jruby-java-to-prototype-audio-vst-plugins/179176 "2009-11-21T14:51:42Z")

</div>

Hi, some feedback of a JRuby project of mine: I used JRuby+Java to create audio (VST) plugins. Not the typical project, but was interesting from an interop point of view :slight\_smile: I’ve detailed the experiment …

---

## [Help: Can't require gems](https://www.ruby-forum.com/t/help-cant-require-gems/179298)

<div class="topic-metadata">

**Author:** [@azadoras](https://www.ruby-forum.com/u/azadoras)\
**Replies:** 2\
**Last updated:** [November 21, 2009, 2:37pm UTC](https://www.ruby-forum.com/t/help-cant-require-gems/179298 "2009-11-21T14:37:40Z")

</div>

I just installed JRuby by downloading the source and then using ant. I installed the gem “profligacy” for the easy use of Swing. Now i wanted to try out the examples, but when using: require ‘profligacy’ it says: te…

---

## [Ruby doesn't implement x++ for Fixnum's because?](https://www.ruby-forum.com/t/ruby-doesnt-implement-x-for-fixnums-because/178162)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 158\
**Last updated:** [November 21, 2009, 1:23pm UTC](https://www.ruby-forum.com/t/ruby-doesnt-implement-x-for-fixnums-because/178162 "2009-11-21T13:23:55Z")

</div>

Hi, In The Well Grounded Rubyist (which, along with The Ruby Way, I love), Dave Black presents a justification for the x++ omission in Ruby. I thought I’d see whether I could implement just the incrementing portio…

---

## [Eval behaves differently inside a method definition](https://www.ruby-forum.com/t/eval-behaves-differently-inside-a-method-definition/179234)

<div class="topic-metadata">

**Author:** [@timr](https://www.ruby-forum.com/u/timr)\
**Replies:** 4\
**Last updated:** [November 21, 2009, 12:25pm UTC](https://www.ruby-forum.com/t/eval-behaves-differently-inside-a-method-definition/179234 "2009-11-21T12:25:58Z")

</div>

\#lets give strings the ability to evaluate theirselves as if in irb. class String def irb eval self end end =\> nil “puts ‘look at me’” =\> “puts ‘look at me’” “puts ‘look at me’”.irb look at me =\> nil #…

---

## [UDP Proxy](https://www.ruby-forum.com/t/udp-proxy/179237)

<div class="topic-metadata">

**Author:** [@owossoborn](https://www.ruby-forum.com/u/owossoborn)\
**Replies:** 9\
**Last updated:** [November 21, 2009, 8:25am UTC](https://www.ruby-forum.com/t/udp-proxy/179237 "2009-11-21T08:25:05Z")

</div>

Hi, I’m reasonably new to programming, and Ruby is my first language. I’ve been trying to work on increasingly complex projects to get a feel for the language, but I’m hitting a wall with this one. My goal is to make…

---

## [Hey you! Stop using relative requires!](https://www.ruby-forum.com/t/hey-you-stop-using-relative-requires/177281)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 21\
**Last updated:** [November 21, 2009, 4:33am UTC](https://www.ruby-forum.com/t/hey-you-stop-using-relative-requires/177281 "2009-11-21T04:33:49Z")

</div>

I recently came across two different programs that had this line in a bin/ executable: $LOAD\_PATH.unshift(File.expand\_path(File.dirname(FILE) + “/…/ lib”)) This stuff makes me sad. The use of RubyGems is masking some…

---

## [Something like puts](https://www.ruby-forum.com/t/something-like-puts/179268)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 8\
**Last updated:** [November 21, 2009, 12:25am UTC](https://www.ruby-forum.com/t/something-like-puts/179268 "2009-11-21T00:25:01Z")

</div>

Newbie question: I need/want a function like puts … that is, a function known globally. I have read the Pickaxe section on mixins and Why the lack of mixing-in support for Class methods? - Ruby - Ruby-Forum and I’m g…

---

## [Trajectories](https://www.ruby-forum.com/t/trajectories/178950)

<div class="topic-metadata">

**Author:** [@unnown](https://www.ruby-forum.com/u/unnown)\
**Replies:** 59\
**Last updated:** [November 20, 2009, 10:11pm UTC](https://www.ruby-forum.com/t/trajectories/178950 "2009-11-20T22:11:35Z")

</div>

hello, im having a problem with trajectories, im trying to make an arrow like movement i did find this but it’s way over my head http://www.gamedev.net/reference/programming/features/physicsch6/ch06.pdf i have these…

---

## [IronRuby and ActiveRecord](https://www.ruby-forum.com/t/ironruby-and-activerecord/179260)

<div class="topic-metadata">

**Author:** [@TurpinS\_Jay](https://www.ruby-forum.com/u/TurpinS_Jay)\
**Replies:** 2\
**Last updated:** [November 20, 2009, 10:09pm UTC](https://www.ruby-forum.com/t/ironruby-and-activerecord/179260 "2009-11-20T22:09:50Z")

</div>

Hi - I’ve looked around and haven’t been able to find a current set of instructions. What is the preferred way to setup IronRuby 0.9.2 with MSSQL and ActiveRecord support? Do I still need to install the MRI, or can IR…

---

## [Difficulties grasping generics + IronRuby - any idea? (OpenXML)](https://www.ruby-forum.com/t/difficulties-grasping-generics-ironruby-any-idea-openxml/179262)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 2\
**Last updated:** [November 20, 2009, 9:55pm UTC](https://www.ruby-forum.com/t/difficulties-grasping-generics-ironruby-any-idea-openxml/179262 "2009-11-20T21:55:47Z")

</div>

Hi, I’m testing out the OpenXML SDK with IronRuby (0.9.2). Turns out it’s full of generics in there, a good play field. Here I’m trying to use the API to retrieve a list of sheets in an existing xslx. I’m having a…

---

## [Re-opening an existing module and changing a method](https://www.ruby-forum.com/t/re-opening-an-existing-module-and-changing-a-method/179211)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 10\
**Last updated:** [November 20, 2009, 9:07pm UTC](https://www.ruby-forum.com/t/re-opening-an-existing-module-and-changing-a-method/179211 "2009-11-20T21:07:17Z")

</div>

“I hear and I forget; I see and I remember; I do and I understand.” Wouldn’t it be nice if it were that simple - clearly they did not know about the subtle art of debugging. So, I’m trying to hack at the math module. …

---

## [Select only taking alternating values?](https://www.ruby-forum.com/t/select-only-taking-alternating-values/179259)

<div class="topic-metadata">

**Author:** [@revenantphoenix](https://www.ruby-forum.com/u/revenantphoenix)\
**Replies:** 6\
**Last updated:** [November 20, 2009, 8:14pm UTC](https://www.ruby-forum.com/t/select-only-taking-alternating-values/179259 "2009-11-20T20:14:20Z")

</div>

The problem in question seems to be that only every OTHER line of terminal input is handled by elsif input == STDIN. Here is the complete code, with some masked stuff Code: require ‘socket’ require ‘protocol.rb’ #S…

---

## [Can't include System](https://www.ruby-forum.com/t/cant-include-system/179261)

<div class="topic-metadata">

**Author:** [@Patrick\_Brown](https://www.ruby-forum.com/u/Patrick_Brown)\
**Replies:** 4\
**Last updated:** [November 20, 2009, 7:57pm UTC](https://www.ruby-forum.com/t/cant-include-system/179261 "2009-11-20T19:57:33Z")

</div>

Hello Can anyone see why I can’t include System in this little script? If I do I get an exception ‘Converter is not a class (TypeError)’. If I skip the include and fully qualify the classes in that namespace this …

---

## [At\_exit with JRuby Embed?](https://www.ruby-forum.com/t/at-exit-with-jruby-embed/179178)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 1\
**Last updated:** [November 20, 2009, 6:11pm UTC](https://www.ruby-forum.com/t/at-exit-with-jruby-embed/179178 "2009-11-20T18:11:37Z")

</div>

What is the preferred way to trigger at\_exit blocks with the new JRuby Embed API? Previously I was using BSF’s terminate() method. I know that behavior is not part of JSR223 so maybe it’s still an open question? PS -…

---

## [For Loop](https://www.ruby-forum.com/t/for-loop/179219)

<div class="topic-metadata">

**Author:** [@unix4linux](https://www.ruby-forum.com/u/unix4linux)\
**Replies:** 8\
**Last updated:** [November 20, 2009, 5:04pm UTC](https://www.ruby-forum.com/t/for-loop/179219 "2009-11-20T17:04:53Z")

</div>

Hello All, I am starting to experiment with Ruby for Sys Admin tasks. Now, I have been working with Shell scripting for a few years now. Currently, I am trying to figure out how I can create a “for loop” in Ruby. I…

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

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