class Proc; def -@; self; end; end
Try:
p = ------------------> x{x + 1}
p[1] have fun.
---------------------------->
-------------------------------------------------- ------------------------------------>
------------------------------------------------->
<------------------------------------------------- -------------------------------------------------- ---
There is a more comfortable way:
gem install superators
Jay Phillips wrote
require 'superators'
class Array
superator "<-----------------" do |operand|
self << operand.reverse
end
end
[1,2,3] <----------------- [1,2,3]
#=> [1,2,3,3,2,1]
Attention, and the above is different from one more or less minus the establishment of a not Oh.
Jay Phillips is another killer Rails application after the author of Adhearson.







