Sha256: 0dec6284ac164760e368b7c0f49d27cc5f93cf9675a349a89a8279427c900369

Contents?: true

Size: 233 Bytes

Versions: 12

Compression:

Stored size: 233 Bytes

Contents

module HumanAttributes
  module Formatters
    class Numeric < Base
      include ActionView::Helpers::NumberHelper

      def apply(_instance, value)
        send(formatter_by_type(type), value, options)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
human_attributes-1.1.0 lib/human_attributes/formatters/numeric.rb
human_attributes-1.0.0 lib/human_attributes/formatters/numeric.rb
human_attributes-0.7.1 lib/human_attributes/formatters/numeric.rb
human_attributes-0.7.0 lib/human_attributes/formatters/numeric.rb
human_attributes-0.6.0 lib/human_attributes/formatters/numeric.rb
human_attributes-0.5.0 lib/human_attributes/formatters/numeric.rb
human_attributes-0.4.0 lib/human_attributes/formatters/numeric.rb
human_attributes-0.3.1 lib/human_attributes/formatters/numeric.rb
human_attributes-0.3.0 lib/human_attributes/formatters/numeric.rb
human_attributes-0.2.0 lib/human_attributes/formatters/numeric.rb
human_attributes-0.1.1 lib/human_attributes/formatters/numeric.rb
human_attributes-0.1.0 lib/human_attributes/formatters/numeric.rb