Sha256: 3eb1558622f6cc9bf7675c3c0643bf065382428288f06eeb4680f1f04666b6a0

Contents?: true

Size: 264 Bytes

Versions: 1

Compression:

Stored size: 264 Bytes

Contents

# http://en.wikipedia.org/wiki/Percent_sign#Spacing

require "attr_extras"

module Formatting
  module Percent
    def format_percent(number, opts = {})
      formatted_number = Formatting.format_number(number, opts)
      "#{formatted_number}%"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
formatting-0.0.16 lib/formatting/percent.rb