Ruby on Rails
Thursday, August 29, 2013
The arity should be -1, not 2. See the docs here: http://www.ruby-doc.org/core-1.9.3/Method.html#method-i-arity
I read the pickaxe book about three years ago, when I first started with Ruby 1.9.2. It was quite beginner friendly, and very useful. I haven't read more recent editions.
--
Dheeraj Kumar
On Friday 30 August 2013 at 3:32 AM, Alex Froelich wrote:
Dheeraj Kumar wrote in post #1120004:Could you paste your test?--Dheeraj KumarThe code for the number of arguments and the part which is failing isit "requires two arguments" domethod(:array_sum).arity.should eq 2endThanks Dheeraj. Quick question about the pick axe book. Have you givena version a read back in the day? I am just wondering how beginnerfriendly it is.--Posted via http://www.ruby-forum.com/.--You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.To post to this group, send email to rubyonrails-talk@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7a5a96d399f82cfc7803630ce33503b4%40ruby-forum.com.For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CCE02DE6380149D1AD2EDED407E82B13%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment