lib/hanami/helpers/number_formatting_helper.rb in hanami-helpers-0.3.0 vs lib/hanami/helpers/number_formatting_helper.rb in hanami-helpers-0.4.0

- old
+ new

@@ -1,5 +1,7 @@ +require 'hanami/utils/kernel' + module Hanami module Helpers # Number formatter # # You can include this module inside your view and @@ -9,9 +11,10 @@ # inject private method: <tt>format_number</tt>. # # @since 0.2.0 module NumberFormattingHelper private + # Format the given number, according to the options # # It accepts a number (<tt>Numeric</tt>) or a string representation. # # If an integer is given, no precision is applied.