|
|
|
|
|
by capableweb
1954 days ago
|
|
Nope! You can't pass functions, return them from other methods and so on, so it's not first class. What you do have in Ruby is Proc, that can be used kind of like first class functions, so you don't really miss out on much. |
|
See:
ps. this also works with the "to_proc" operator (&) so you can do this: (but I wouldn't necessarily recommend this since it's not very readable, at least to my eyes).