13 Jul, 2009 in Ruby by khelll

Ruby 1.9 has a great support for encoding, this post covers that for a big deal, however with this support out of the box, things like this becomes easier, just note the source code is not limited to few types of encoding just like Ruby 1.8.

# coding: UTF-8
 
π = Math::PI
 
def √(x)
Math.sqrt(x)
end
 
def ∑(r)
[...]