# Ruby

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

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

---

## [Re: pp Pascal (#84)](https://www.ruby-forum.com/t/re-pp-pascal-84/64480)

<div class="topic-metadata">

**Author:** [@Derek\_Poon](https://www.ruby-forum.com/u/Derek_Poon)\
**Replies:** 0\
**Last updated:** [June 26, 2006, 9:59am UTC](https://www.ruby-forum.com/t/re-pp-pascal-84/64480 "2006-06-26T09:59:23Z")

</div>

This solution works pretty quickly. On a P4 1.8 GHz: $ time ./pp\_pascal.rb 185 \> /dev/null real 0m0.412s user 0m0.368s sys 0m0.041s Anything larger than 185 rows fails due to stack overflow. ############…

---

## [Help please: math or variable problem](https://www.ruby-forum.com/t/help-please-math-or-variable-problem/96093)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 5\
**Last updated:** [June 26, 2006, 9:37am UTC](https://www.ruby-forum.com/t/help-please-math-or-variable-problem/96093 "2006-06-26T09:37:58Z")

</div>

Preface- I know there is an easier way , since I’ll be working into the thousands. Anyway, down below I’m taking a number between 10 and 49 and converting to a Roman Numeral. I’ve been experimenting with 46, which s…

---

## [Odd \<\< behaviour](https://www.ruby-forum.com/t/odd-behaviour/64426)

<div class="topic-metadata">

**Author:** [@xinit](https://www.ruby-forum.com/u/xinit)\
**Replies:** 10\
**Last updated:** [June 26, 2006, 7:38am UTC](https://www.ruby-forum.com/t/odd-behaviour/64426 "2006-06-26T07:38:27Z")

</div>

Consider the following code: class Stuff def \<\< (arg1,arg2) puts arg1 puts arg2 end end s = Stuff.new When doing the following: s \<\< “1”, “2” Ruby errors with: stuff:8: parse error, unexpected ‘,’, expecting ‘…

---

## [Help with "generating" code](https://www.ruby-forum.com/t/help-with-generating-code/64385)

<div class="topic-metadata">

**Author:** [@merc](https://www.ruby-forum.com/u/merc)\
**Replies:** 3\
**Last updated:** [June 26, 2006, 3:27am UTC](https://www.ruby-forum.com/t/help-with-generating-code/64385 "2006-06-26T03:27:22Z")

</div>

Hello, OK, this is a Ruby question, even though it’s for a RoR project :smiley: I am a pretty hopeless Ruby programmer. I am getting better, but when it’s about eval(), symbols and introspection, I still crumble… Bes…

---

## [Ruby flaws , follow up to Ruby goodies](https://www.ruby-forum.com/t/ruby-flaws-follow-up-to-ruby-goodies/64369)

<div class="topic-metadata">

**Author:** [@roggan](https://www.ruby-forum.com/u/roggan)\
**Replies:** 7\
**Last updated:** [June 26, 2006, 3:23am UTC](https://www.ruby-forum.com/t/ruby-flaws-follow-up-to-ruby-goodies/64369 "2006-06-26T03:23:32Z")

</div>

Ok Ive got a fair picture of whats good about Ruby. Now what would you consider to be the biggest flaws or limitations in ruby? I personally thought that going from a type safe language to a dynamic one would be more…

---

## [Disk\_free\_space](https://www.ruby-forum.com/t/disk-free-space/64158)

<div class="topic-metadata">

**Author:** [@Darken](https://www.ruby-forum.com/u/Darken)\
**Replies:** 10\
**Last updated:** [June 26, 2006, 3:23am UTC](https://www.ruby-forum.com/t/disk-free-space/64158 "2006-06-26T03:23:25Z")

</div>

Hi, I need an equivalent of $subj php function in ruby… I have a directory and I need to find out how much I can save there… Only idea I have is to find mountpoint and then parse /proc, but it’s very ugly solution :sl…

---

## [Stumped:beginners question](https://www.ruby-forum.com/t/stumped-beginners-question/64407)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 10\
**Last updated:** [June 26, 2006, 2:28am UTC](https://www.ruby-forum.com/t/stumped-beginners-question/64407 "2006-06-26T02:28:21Z")

</div>

I’m having a hard time with both getting my branching correct as well as my loop. In this little program, the survey taker asks expecting a “yes” or “no” (currently not working correctly). If any other response is gi…

---

## [\#84 Pascal Triangle](https://www.ruby-forum.com/t/84-pascal-triangle/64458)

<div class="topic-metadata">

**Author:** [@dirk](https://www.ruby-forum.com/u/dirk)\
**Replies:** 0\
**Last updated:** [June 26, 2006, 1:11am UTC](https://www.ruby-forum.com/t/84-pascal-triangle/64458 "2006-06-26T01:11:16Z")

</div>

hi everyone, here’s my own solution to the problem: pascal.rb class Pascal attr\_reader :triangle def initialize(rows) @triangle=\[\] generate(rows) end def \[\](row, n) if row\>0 and row\<=@triangle.length and n\>0 and…

---

## [\[SOLUTION\] pp Pascal (#84)](https://www.ruby-forum.com/t/solution-pp-pascal-84/64420)

<div class="topic-metadata">

**Author:** [@rambor](https://www.ruby-forum.com/u/rambor)\
**Replies:** 1\
**Last updated:** [June 25, 2006, 11:54pm UTC](https://www.ruby-forum.com/t/solution-pp-pascal-84/64420 "2006-06-25T23:54:41Z")

</div>

Hello, you can take this as negative example, cause I store the triangle and the formatted output :slight\_smile: Thus it’s much slower than most solutions. kind regards Robert

---

## [Advice Joining added to Cut-based AOP](https://www.ruby-forum.com/t/advice-joining-added-to-cut-based-aop/96087)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [June 25, 2006, 11:45pm UTC](https://www.ruby-forum.com/t/advice-joining-added-to-cut-based-aop/96087 "2006-06-25T23:45:07Z")

</div>

After some recent conversion on AOP on the list, I reviewing the Cut-based AOP proposal and found one area that needed some address, namely redirectly methods to their advice in a dyanamic and flexible fashion. So I m…

---

## [Win32-etc](https://www.ruby-forum.com/t/win32-etc/96081)

<div class="topic-metadata">

**Author:** [@Romuald\_du\_Song](https://www.ruby-forum.com/u/Romuald_du_Song)\
**Replies:** 1\
**Last updated:** [June 25, 2006, 11:41pm UTC](https://www.ruby-forum.com/t/win32-etc/96081 "2006-06-25T23:41:54Z")

</div>

Hy, I’m using Etc.passwd() to gather information about the users. I’ve found that last\_logoff is always ‘0’, is it a bug or a problem with my installation ? Anybody already using this package to collect this informat…

---

## [Segmentation fault in PDF::Writer](https://www.ruby-forum.com/t/segmentation-fault-in-pdf-writer/64406)

<div class="topic-metadata">

**Author:** [@Sorin\_C](https://www.ruby-forum.com/u/Sorin_C)\
**Replies:** 1\
**Last updated:** [June 25, 2006, 9:40pm UTC](https://www.ruby-forum.com/t/segmentation-fault-in-pdf-writer/64406 "2006-06-25T21:40:55Z")

</div>

Hi, While using PDF::Writer I encountered a segmentation fault. Been trying to post first on rubyforge project page but nothin works in there neither Bugs page or mailing lists. So I am posting the trace here: This …

---

## [RubyForge in Ruby?](https://www.ruby-forum.com/t/rubyforge-in-ruby/64267)

<div class="topic-metadata">

**Author:** [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Replies:** 25\
**Last updated:** [June 25, 2006, 9:25pm UTC](https://www.ruby-forum.com/t/rubyforge-in-ruby/64267 "2006-06-25T21:25:13Z")

</div>

Folks, Not to stir up a hornet’s nest or anything… but… It strikes me as a tad odd that RubyForge runs on a PHP code base. I understand the reasons for using an existing tool, but it strikes me that Ruby and Rails …

---

## [Expecting kEND](https://www.ruby-forum.com/t/expecting-kend/96085)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 2\
**Last updated:** [June 25, 2006, 9:05pm UTC](https://www.ruby-forum.com/t/expecting-kend/96085 "2006-06-25T21:05:46Z")

</div>

I know this is a literal translation to keyword end, but unsure sometimes (right now that is frequent) of where end goes. I know there is one to end the method definition. However adding one after the if and one afte…

---

## [Missing parantheses maybe?](https://www.ruby-forum.com/t/missing-parantheses-maybe/64337)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 4\
**Last updated:** [June 25, 2006, 8:53pm UTC](https://www.ruby-forum.com/t/missing-parantheses-maybe/64337 "2006-06-25T20:53:20Z")

</div>

Trying to do some fancy formatting and getting an error message. Since I know .center is a method the error message can’t be the ultimate truth. Anyone ? Table of Contents \<------This is core…

---

## [Concatenate hash](https://www.ruby-forum.com/t/concatenate-hash/96060)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [June 25, 2006, 8:53pm UTC](https://www.ruby-forum.com/t/concatenate-hash/96060 "2006-06-25T20:53:11Z")

</div>

Hello, Is there a built-in method to concatenate 2 hashes? Couldn’t find anything on this topic. Thanks Cliff.

---

## [Array indices](https://www.ruby-forum.com/t/array-indices/96086)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 3\
**Last updated:** [June 25, 2006, 8:50pm UTC](https://www.ruby-forum.com/t/array-indices/96086 "2006-06-25T20:50:02Z")

</div>

Is there a way to set the indice on an array, i.e. Instead of: myarray = \[1,2,3,4,5\] myarray\[1\] =2 myarray\[4\]=5 myarray\[A\]=1 I know this can be done using hashes but was not sure with arrays Stuart

---

## [Yamlt?](https://www.ruby-forum.com/t/yamlt/95878)

<div class="topic-metadata">

**Author:** [@Victor\_SZverokS\_She](https://www.ruby-forum.com/u/Victor_SZverokS_She)\
**Replies:** 7\
**Last updated:** [June 25, 2006, 8:40pm UTC](https://www.ruby-forum.com/t/yamlt/95878 "2006-06-25T20:40:39Z")

</div>

Hi all. A short question. XML has XSLT (which is XML itself) JSON has less-known JSONT (JsonT - Transforming Json), which also is JSON itself. What about YAMLT? Is it exists? Can it be useful? How can it look? Mor…

---

## [M17n and unicode](https://www.ruby-forum.com/t/m17n-and-unicode/64419)

<div class="topic-metadata">

**Author:** [@brad7a0](https://www.ruby-forum.com/u/brad7a0)\
**Replies:** 1\
**Last updated:** [June 25, 2006, 8:22pm UTC](https://www.ruby-forum.com/t/m17n-and-unicode/64419 "2006-06-25T20:22:00Z")

</div>

Please forgive my ignorance. Is m17n a type of unicode? http://unicode.org makes no mention of it that I can see. And http://m17n.org make no mention of unicode. Why is this? In general terms, I think m17n is a type o…

---

## [RAspect - alpha demo](https://www.ruby-forum.com/t/raspect-alpha-demo/96090)

<div class="topic-metadata">

**Author:** [@roggan](https://www.ruby-forum.com/u/roggan)\
**Replies:** 0\
**Last updated:** [June 25, 2006, 7:49pm UTC](https://www.ruby-forum.com/t/raspect-alpha-demo/96090 "2006-06-25T19:49:38Z")

</div>

Ok, Ive just published an alpha release of my AOP framework RAspect here: http://www.puzzleframework.com/tmp/raspect.zip So if anyone is interested in AOP and Ruby please try it :slight\_smile: Also, Im pretty sure th…

---

## [Class \<\< self?](https://www.ruby-forum.com/t/class-self/96048)

<div class="topic-metadata">

**Author:** [@roggan](https://www.ruby-forum.com/u/roggan)\
**Replies:** 10\
**Last updated:** [June 25, 2006, 6:17pm UTC](https://www.ruby-forum.com/t/class-self/96048 "2006-06-25T18:17:12Z")

</div>

Can someone please explain exactly what “class \<\< self” does , I just dont get it. I was trying to alias some static methods with no luck but later found some webpage saying that I need “class \<\< self” to make the cod…

---

## [Re: Why is there no Smalltalk-like IDE for Ruby?](https://www.ruby-forum.com/t/re-why-is-there-no-smalltalk-like-ide-for-ruby/64401)

<div class="topic-metadata">

**Author:** [@wirelesspower](https://www.ruby-forum.com/u/wirelesspower)\
**Replies:** 1\
**Last updated:** [June 25, 2006, 6:07pm UTC](https://www.ruby-forum.com/t/re-why-is-there-no-smalltalk-like-ide-for-ruby/64401 "2006-06-25T18:07:14Z")

</div>

On Sun, 2006-06-25 at 05:20 +0900, Joseph M. wrote: Ruby should have IDE support approaching Smalltalk’s based on the following gross generalization: Ruby and Smalltalk are pretty much the same. Yes, I know there ar…

---

## [Signal & native-thread](https://www.ruby-forum.com/t/signal-native-thread/63896)

<div class="topic-metadata">

**Author:** [@Hidetoshi\_NAGAI](https://www.ruby-forum.com/u/Hidetoshi_NAGAI)\
**Replies:** 6\
**Last updated:** [June 25, 2006, 5:33pm UTC](https://www.ruby-forum.com/t/signal-native-thread/63896 "2006-06-25T17:33:24Z")

</div>

e$B1J0fe(B@e$BCNG=!%6e9)Bg$G$9!%e(B 1.9 e$B$K4^$^$l$F$$$ke(B signal e$B\<~$j$Ne(B native-thread e$BBP:v$G$9$,!$e(B e$BFC$KLdBj$,=P$F$$$k$H$$$&OC$OJ9$$$F$$$^$;$s!%e(B e$B5U$Ke(B 1.8 e$B$G$O%-!\<%!\<%I3d$j9~$\_$r$+$1$?$H$-…

---

## [\`Ripper#parse': \[Ripper FATAL\] unknown token 316 (RuntimeErr](https://www.ruby-forum.com/t/ripper-parse-ripper-fatal-unknown-token-316-runtimeerr/96064)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 2\
**Last updated:** [June 25, 2006, 5:17pm UTC](https://www.ruby-forum.com/t/ripper-parse-ripper-fatal-unknown-token-316-runtimeerr/96064 "2006-06-25T17:17:18Z")

</div>

e$B$I$&$b!"e(BRipper e$B$Ge(B ?a e$B$H$+$r07$($J$/$J$C$F$$$k$h$&$G$9!#e(B % ./ruby -rripper -ve ‘p Ripper.sexp("?a")’ ruby 1.9.0 (2006-06-24) \[i686-linux\] /home/akr/ruby/1.9/lib/ruby/1.9/ripper/sexp.rb:36:in Ripper#p…

---

## [Fwd: Please Forward: Ruby Quiz Submission #84](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission-84/64417)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [June 25, 2006, 5:07pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission-84/64417 "2006-06-25T17:07:58Z")

</div>

Begin forwarded message:

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/115529)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [June 25, 2006, 5:04pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/115529 "2006-06-25T17:04:39Z")

</div>

Begin forwarded message:

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/225888)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [June 25, 2006, 5:04pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/225888 "2006-06-25T17:04:31Z")

</div>

Begin forwarded message:

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/225581)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [June 25, 2006, 5:04pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/225581 "2006-06-25T17:04:21Z")

</div>

Begin forwarded message:

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/197322)

<div class="topic-metadata">

**Author:** [@Backpack](https://www.ruby-forum.com/u/Backpack)\
**Replies:** 0\
**Last updated:** [June 25, 2006, 5:04pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/197322 "2006-06-25T17:04:12Z")

</div>

Begin forwarded message:

---

## [Implementation of mixins?](https://www.ruby-forum.com/t/implementation-of-mixins/96082)

<div class="topic-metadata">

**Author:** [@roggan](https://www.ruby-forum.com/u/roggan)\
**Replies:** 4\
**Last updated:** [June 25, 2006, 4:57pm UTC](https://www.ruby-forum.com/t/implementation-of-mixins/96082 "2006-06-25T16:57:55Z")

</div>

How are the mixins implemented in Ruby? are the code in the mixin module “injected” into the target class? eg: consumer --call–\> Taget or will the mixin related stuff live in some separate object and the target just…

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

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