Sha256: c7b8b8305d25112fa4a1f519fd4a1d958a5a3259d80e48ff8827325a7f9dba56

Contents?: true

Size: 350 Bytes

Versions: 8

Compression:

Stored size: 350 Bytes

Contents

module TableHelp
  module Formatter
    module_function

    def format_attribute_name(name, collection_or_resource)
      return if name.blank?
      TableHelp.config.formatter[:attribute_name].call(name, collection_or_resource)
    end

    def format_value(name, value)
      TableHelp.config.formatter[:value].call(name, value)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
table_help-0.2.0 lib/table_help/formatter.rb
table_help-0.1.7 lib/table_help/formatter.rb
table_help-0.1.6 lib/table_help/formatter.rb
table_help-0.1.5 lib/table_help/formatter.rb
table_help-0.1.4 lib/table_help/formatter.rb
table_help-0.1.3 lib/table_help/formatter.rb
table_help-0.1.2 lib/table_help/formatter.rb
table_help-0.1.1 lib/table_help/formatter.rb