/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

zverok.space
| | endofline.wordpress.com
22.9 parsecs away

Travel
| | This article has been republished on Monkey and Crow. As of ruby 1.9, you can do some pretty odd things with array destructuring and splatting. Putting the star before an object invokes the splat operator, which has a variety of effects. First we'll start with some very useful examples, then we will poke around the...
| | noelrappin.com
22.9 parsecs away

Travel
| | I just write here
| | cbabhusal.wordpress.com
25.0 parsecs away

Travel
| | The*is thesplatoperator.It expands anArrayinto a list of arguments, in this case a list of arguments to theHash.[]method. (To be more precise, it expands any object that responds toto_ary/to_a, orto_ain Ruby 1.9.) To illustrate, the following two statements are equal: method_name arg1, arg2, arg3 method_name *[arg1, arg2, arg3] It can also be used in a different...
| | jawher.me
54.7 parsecs away

Travel
|