First page
Back
Continue
Last page
Overview
Graphics
Extend classes
class Numeric
def to_euro
return "%.2f EUR" % [self]
end
end
1.to_euro #-> "1.00 EUR"
Math::PI.to_euro #-> "3.14 EUR"