Dear Rubyists, foo.rb: class String def quote() "'"+self+"'" end end puts "blabla".quote ---
I rather like the type safe enum pattern in Java, and I was wonding how I might implement it in Ruby. Here is an example (based on the earlier OO...
I am using the ruby version from ruby-1.8.0-i386.mswin32.zip I am using windows xp btw. The problem I'm having is I installed soap4r. The...
hi,how to install on windows the module for opengl! sorry but i'm a beginner(and sorry for my english)!thank u! -pilu-
$B!y$*5^$.$G$7$?$i!y(B $BMhE9ITMW!*(B $B%M%C%H$+$i?=$79~$_!*(Bhttp://alicecorp.maim.jp/ $B:#$J$iFCJLM;;q%-%c%s%Z!<%sCf(B...
Mark Wilson wrote: Well either that or ZERO!, NONE!, I mean it! Seems that that's what I find myself shouting at my 2 year old anyway. Scott
0! represents the number of possible permutations of 0 elements, which is 1. See: http://mathworld.wolfram.com/Factorial.html Regards, ...
How do you do meta type stuff in Ruby? E.g. a_method = "to_str" an_attribute = "color" class Toad attr_accessor :color def initialize( c )...
hi,where can I find documentation for ruby game programming! thank u
I've written a natural order comparison funtion for the String class. This was based on Martin Pool's "Natural Order String Comparison" which was...
Hi all, I need to write a constructor-like method for a module. From the help I have found the Module#append_features method, which look like is...
Hi! Are the tutorials downloadable on sf.net or should I use wget? thx Gergo -- +----------+ | http://www.mcl.hu/~kgergely ...
Hello, This is a summary of ruby-dev mailing list last week. test/ruby/* NKAMURA, Hiroshi created a starter of adding test suites to...
OK, I've been thinking (always dangerous after 11 pm). Class-level entities can be accessed via a double-colon. No big mystery: ...
Hi ! I have been writing some unit tests with Test::Unit. I've noted that when an assertion fails in a test method, the remaining assertions...
Is there a built-in method in Ruby for checking whether a string starts with or ends with a pattern? e.g.: "Hello, world".start_with?("Hello") =>...
Hi, I just want to know, whether there is a way to accomplish things like "method redefinition" like in C++ (sorry, dont know the exact terminus...
This is a multi-part message in MIME format. ------=_NextPart_000_0029_01C37B90.B5BD3950 Content-Type: text/plain; charset="iso-8859-1"...
In the Method Redefinition thread, this explanation of Duck Typing is offered ... This is slightly different than my understanding of Duck...
Dear Ruby Community, One day I hope to learn your trade :) But before that ... A reasonably arrogant guy came out blasting in a web-forum...
Use this control to limit the display of threads to those newer than the specified time frame.
Allows you to choose the data by which the thread list will be sorted.
Order threads in...
Note: when sorting by date, 'descending order' will show the newest results first.
Forum Rules