/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

endofline.wordpress.com
| | www.blackbytes.info

What are some weird things about Ruby that are worth learning about? Take a look at this post to find out!
4.8 parsecs

Travel
| |
| | www.destroyallsoftware.com


8.1 parsecs

Travel
| |
| | cbabhusal.wordpress.com

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...
0.8 parsecs

Travel
| |
| | honnef.co

[AI summary] The article explains how to dynamically define instance methods in Ruby using eigenclass eval and the define_method function.
31.8 parsecs

Travel
|