Class: Cldr::Format::Percent

Inherits:
Decimal
  • Object
show all
Defined in:
lib/cldr/format/percent.rb

Instance Attribute Summary

Attributes inherited from Decimal

#negative, #positive

Instance Method Summary collapse

Methods inherited from Decimal

#initialize

Constructor Details

This class inherits a constructor from Cldr::Format::Decimal

Instance Method Details

#apply(number, options = {}) ⇒ Object



6
7
8
# File 'lib/cldr/format/percent.rb', line 6

def apply(number, options = {})
  super.gsub('ยค', options[:percent_sign] || '%')
end