lib/osheet/format/numeric.rb in osheet-0.9.1 vs lib/osheet/format/numeric.rb in osheet-0.9.2
- old
+ new
@@ -1,5 +1,7 @@
+# encoding: UTF-8
+
require 'enumeration'
module Osheet::Format
class Numeric
@@ -97,10 +99,12 @@
def symbol_style
case @symbol
when :dollar
"\"$\"#{symbol_suffix}"
- when :none
+ when :euro
+ "\"€\"#{symbol_suffix}"
+ else
''
end
end
def symbol_key
@symbol.to_s.gsub('_', '')