Jay Phillips developed the 'superators' gem, which enables the use of custom operators in Ruby. for example.
- require 'rubygems'
- require 'superators'
- class Array
- superator "<---" do |operand|
- self << operand.reverse
- end
- end
- ["jay"] <--- "spillihp"
Ruby On Rails and a Conning Israeli entrepreneur
Jay Phillips developed the 'superators' gem, which enables the use of custom operators in Ruby. for example.
0 comments:
Post a Comment