Leandro Facchinetti wrote in post #1058817:
> It's Ruby. If the last argument in a function call is a hash, you can
> omit
> the braces.
I think technically it has to do with ambiguity. It doesn't really have
anything do with it being the last argument, but rather omitting the
braces anywhere else in the argument list would cause ambiguity.
Although, that's really just semantics.
--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
1 comment:
Ruby on Rails is the hot topic in web development. I had a test run for RoR and liked it
Ruby on Rails | Ruby on Rails Development | Rails Development
Post a Comment