Class: ActiveSupport::NumberHelper::NumberToDelimitedConverter
- Inherits:
-
NumberConverter
- Object
- NumberConverter
- ActiveSupport::NumberHelper::NumberToDelimitedConverter
- Defined in:
- activesupport/lib/active_support/number_helper/number_to_delimited_converter.rb
Overview
:nodoc:
Constant Summary collapse
- DEFAULT_DELIMITER_REGEX =
/(\d)(?=(\d\d\d)+(?!\d))/
Constants inherited from NumberConverter
ActiveSupport::NumberHelper::NumberConverter::DEFAULTS
Instance Attribute Summary
Attributes inherited from NumberConverter
Instance Method Summary collapse
Methods inherited from NumberConverter
convert, #execute, #initialize
Constructor Details
This class inherits a constructor from ActiveSupport::NumberHelper::NumberConverter
Instance Method Details
#convert ⇒ Object
12 13 14 |
# File 'activesupport/lib/active_support/number_helper/number_to_delimited_converter.rb', line 12 def convert parts.join([:separator]) end |