RubyConf 2011 talk proposals being accepted029 (5/30/2011 9:12:27 PM) comp.lang.ruby [Note: parts of this message were removed to make it a legal post.] Hi all -- Talk proposals for RubyConf 2011 are being accepted through June 15. The conference will be held September 29-October 1 in New Or... David
[ANN] RubyConf registration and Call For Proposals now open!0154 (8/1/2010 9:31:44 PM) comp.lang.ruby Hi everyone --
You can now register for RubyConf, and the Call For Proposals for
conference talks is also open.
More details and links at http://www.rubyconf.org.
Registration is at the early-bird rat... David
[ANN/ADV] The Compleat Rubyist, Philadelphia, October 1-2 20100145 (7/13/2010 10:21:43 AM) comp.lang.ruby Hello everyone --
I'm very pleased to announce that the next Compleat Rubyist event will
be held in Philadelphia, PA, at the Crowne Plaza Philadelphia West,
October 1-2, 2010.
The Compleat Rubyist is a ... David
[ANN] Free shell accounts on new ruby-versions.net site223 (7/12/2010 10:09:05 AM) comp.lang.ruby Hi -- I'm please to announce the new incarnation of ruby-versions.net, where you can get a free shell account. (See http://www.ruby-versions.net for how.) The server for the new incarnation is generously provi... David
[ADV] Compleat Rubyist in Chicago -- space still available!0177 (5/27/2010 11:47:41 AM) comp.lang.ruby Hi everybody --
There are still spaces available for The Compleat Rubyist, a two-day
Ruby training event with me, Gregory Brown, and Jeremy McAnally,
taking place in the Chicago area (Arlington Heights), J... David
Trip down memory lane...728 (11/8/2009 2:32:53 PM) comp.lang.ruby Hi -- I've been hunting through old RCRs, and came across my favorite rejected one: http://oldrcrs.rubypal.com/rejected.html#rcr120 :-) Still trying to find that map(:sym) one.... David -- The R... David
[ANN/ADV] 10% off for groups of 5+ at The Compleat Rubyist021 (10/14/2009 11:19:07 AM) comp.lang.ruby Hi all -- We're offering a 10% discount to groups of 5 or more signing up for The Compleat Rubyist. Use the code TCR5PLUS when signing up. "The what?" you ask. The Compleat Rubyist is a two-day Ruby training... David
Tip du jour: no need to chomp before to_i522 (10/11/2009 10:38:50 AM) comp.lang.ruby Hi -- Very minor point, but in case it's useful: n = gets.chomp.to_i does the same thing as: n = gets.to_i because to_i doesn't do anything with the trailing newline anyway. This is even the case if... David
ruby 1.9 and collect1228 (12/5/2009 5:40:54 PM) comp.lang.ruby Under ruby 1.8.6, running [1, 2, 3].collect results in an array of [1, 2, 3]. In 1.9, however, running [1, 2, 3].collect results in an Enumerator, which I then have to call .to_a on. Alternately, I can sup... raul.c.jara(14)
Why can't I use "or" here?40120 (12/31/2009 2:24:26 AM) comp.lang.ruby (The problem is in both Ruby 1.8 and Ruby 1.9)
The expression:
puts(nil || 4)
works as expected. It prints '4'.
But this expression:
puts(nil or 4)
fails... it is a syntax error, for some ... albertschlef(195)
Looking for object.inherits?(Classname)1131 (1/20/2010 1:13:13 AM) comp.lang.ruby I'm looking for a way to make sure an object being passed is in some class family, or to say it otherwise, inherits some specific class, but not necessarily directly. In fact, it could be a great-great-grand... xeno.campanoli(88)
Elegant Solution to a Seemingly Simple Problem?1127 (4/18/2010 7:23:54 AM) comp.lang.ruby Hello everyone. It's me: Derek, again! Sorry for writing a novel here, but I'd really appreciate some help. I'm still working on the same program -- a way to show valid course combinations for my school schedu... novellterminator(5)
Code refactoring: request for comment132 (4/29/2010 9:17:59 PM) comp.lang.ruby Hi all,
I've just finished doing some pretty heavy refactoring on a method. I'd
like to know if anyone can offer any suggestions or feedback.
This is the old one:
http://github.com/Trevoke/SGFParser/blob/... Aldric
Infinite Loop in Code -- Logic Error8567 (7/17/2010 10:38:42 AM) comp.lang.ruby Hi all,
I've just started my journey as a ruby developer, and I'm going through
a couple of exercises that one of my professors sent me, to allow me
figure out the syntax. It's not for an assignment, merel... James
[].all?{} and [].any?{} Behavior26132 (7/29/2010 9:27:52 PM) comp.lang.ruby I find the following behavior interesting (so interesting that I
modified it), and I would like to hear others' thoughts on the subject:
[3].all? {|element| element == 3 } # => true
[3].all? {|element| el... John
Check existence of object and it's property at the same time923 (8/18/2010 9:09:05 PM) comp.lang.ruby I run into this from time to time and I was wondering if there is a cleaner way to do check that an object is not nil and also check a property of that object. I want to do this: if !@member.nil? and @member.... coryp(2)