Search the web
Sign In
New User? Sign Up
ocruby · Orange County Ruby Users Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 711 - 740 of 1717   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
711
Hi -- I'm very new to Ruby. I would like to start attending your informal meetings on Thursday evenings. In the meantime, I'm wondering if anyone can explain...
d2jcell
Offline Send Email
Mar 5, 2007
6:29 pm
712
The default arguments have to be the last. Make c the default and it works. --art On Mon, 05 Mar 2007 18:25:53 -0000...
Arthur Gittleman
artgittleman
Offline Send Email
Mar 5, 2007
6:44 pm
713
Default arguments cannot be followed by non default arguments (how would you setup a condition that you passed nothing, and them something) you could do def...
Forrest Chang
fkchang2000
Offline Send Email
Mar 5, 2007
7:09 pm
714
That certainly explains it. Thanks a batch for the help. Looking forward to Thursday. ... doug...
d2jcell
Offline Send Email
Mar 5, 2007
8:01 pm
715
We have another Ruby School coming up this Wednesday to go over chapters 9-11, or talk about more startup ideas J See the usual page for details ...
Scott Hodson
shodson
Offline Send Email
Mar 5, 2007
8:29 pm
716
Hey guys, In the after_update call, is it possible to see exactly what attributes got updated or see what the previous object was? Thanks! -dan...
Daniel Quach
dquach714
Offline Send Email
Mar 5, 2007
9:48 pm
717
So nobody has RSVP-ed to go to Ruby School tonight, is anybody going to show up? I'm still not sure but there's a 70% chance I'll show up....
Scott Hodson
shodson
Offline Send Email
Mar 7, 2007
11:07 pm
718
I know I will not be able to make it tonight....
Steve Holder
sixkillz
Offline Send Email
Mar 7, 2007
11:22 pm
719
I intend to show up if you guys meet. ... -- Fabrizio Novo President Kafa SNC http://allwineries.com...
Fabrizio Novo
fabrizio@...
Send Email
Mar 7, 2007
11:56 pm
720
Well, it's too late to accept any more RSVPs. Officially, I'm cancelling the meeting. If anybody still shows up and still wants to hang out that's fine, but...
Scott Hodson
shodson
Offline Send Email
Mar 8, 2007
12:10 am
721
... That's disappointing. I was planning on making this my first meeting. However, it sounds like there is going to be no one there. Hopefully there will be...
Doug Jolley
d2jcell
Offline Send Email
Mar 8, 2007
2:11 am
722
Yeah, we need at least 3 or 4 RSVPs, ideally before noon on the day of the meeting. We'll try again in the next 2 weeks. From: ocruby@yahoogroups.com...
Scott Hodson
shodson
Offline Send Email
Mar 8, 2007
3:17 am
723
How would I test to see whether a variable exists? Thanks. ... doug...
d2jcell
Offline Send Email
Mar 9, 2007
1:15 am
724
irb(main):001:0> defined? blah => nil irb(main):002:0> blah = nil => nil irb(main):003:0> defined? blah => "local-variable" so: assert defined?(somevar) Though...
Kevin Clark
crash_and_or...
Offline Send Email
Mar 9, 2007
2:55 am
725
defined? blah Thanks very much. ... doug ____________________________________________________________________________________ Be a PS3 game guru. Get your game...
Doug Jolley
d2jcell
Offline Send Email
Mar 9, 2007
5:37 pm
726
Sweet! http://blogs.sun.com/marigan/entry/how_the_vi_editor_would...
Scott Hodson
shodson
Offline Send Email
Mar 9, 2007
7:52 pm
727
I would like to perform a program branch based on the class (type) of a particular variable. Any thoughts on how I might do this? Thanks. ... doug...
d2jcell
Offline Send Email
Mar 13, 2007
12:26 am
728
The most straightforward way to do this is just a case statment based on the class of the object, which you can get by calling #class. Something like: case...
Steve Holder
sixkillz
Offline Send Email
Mar 13, 2007
12:44 am
729
From the Pickaxe book. Ruby classes are instances of class Class, which defines === as a test to see if the argument is an instance of the class or one of its...
Scott Hodson
shodson
Offline Send Email
Mar 13, 2007
12:44 am
730
... Any object's class is accessible through the class method. You can also pass the method is_a? a class to check against; this is preferable because it will...
Phil Hagelberg
theyellowish...
Offline Send Email
Mar 13, 2007
12:47 am
731
OK. I must be an idiot. (BTW, I deeply appreciate all of the insightful suggestions that I received.) However, I can't seem to get even the simplest...
d2jcell
Offline Send Email
Mar 14, 2007
2:20 am
732
It should be case myvar when String: puts('A String') when Array: puts('An Array') end doing the case myvar.class will give value if you have a when Class:...
Forrest Chang
fkchang2000
Offline Send Email
Mar 14, 2007
2:50 am
733
Thanks, Forrest. While clearly correct, your answer comes as a bit of a surprise. I guess I'm going to have to re-think my understanding of Ruby conditions....
Doug Jolley
d2jcell
Offline Send Email
Mar 14, 2007
4:15 pm
734
It's not ruby conditions, it's just the case statement. The case statement uses ===, which does interesting things. Kev ... -- Kevin Clark http://glu.ttono.us...
Kevin Clark
crash_and_or...
Offline Send Email
Mar 14, 2007
7:23 pm
735
... Yeah, don't feel bad about not understanding it at first glance. I would say it's fairly unintuitive. However, I still hold that wanting to branch based on...
Phil Hagelberg
theyellowish...
Offline Send Email
Mar 14, 2007
7:53 pm
736
... I totally understood that and I wasn't taking your suggestion lightly. That's why I made mention of the fact that I couldn't get even the simplest of...
Doug Jolley
d2jcell
Offline Send Email
Mar 14, 2007
9:15 pm
737
HI Doug: As Kevin ('sup? How's life in the Bay now?) pointed out, case uses the === operator and thus is quite a bit more powerful than the switch statements...
Forrest Chang
fkchang2000
Offline Send Email
Mar 14, 2007
11:16 pm
738
Without seeing your code, I would say in general that switch/case statements usually beg for polymorphism. Really simplfies the code. From your description I...
Forrest Chang
fkchang2000
Offline Send Email
Mar 14, 2007
11:45 pm
739
BarCamp is an ad-hoc gathering born from the desire for people to share and learn in an open environment. It is an intense event with discussions, demos, and...
Nick Dynice
nsputnik
Offline Send Email
Mar 16, 2007
5:18 am
740
http://www.infoq.com/news/2007/03/jruby-on-grails ... vice-chair http://ocjug.org/...
Ray Tayek
rtayek
Offline Send Email
Mar 20, 2007
5:28 pm
Messages 711 - 740 of 1717   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help