class Array def apply collect! { |number| yield number } endenda=[1,2,3]a.apply { |i| i * i }p a.to_s
posted by z at 3:56 AM | Comment
Post a Comment << Home
0 Comments:
Post a Comment
<< Home