/explore
|
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! |
|
| | | | | ||
| | | | |
www.destroyallsoftware.com
|
|
| | | | | ||
| | | | |
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... |
|
| | | | | ||
| | | | |
honnef.co
[AI summary] The article explains how to dynamically define instance methods in Ruby using eigenclass eval and the define_method function. |
|
| | | |||