module TableHelp::Formatter
Public Instance Methods
format_attribute_name(name, collection_or_resource)
click to toggle source
# File lib/table_help/formatter.rb, line 5 def format_attribute_name(name, collection_or_resource) return if name.blank? TableHelp.config.formatter[:attribute_name].call(name, collection_or_resource) end
format_value(name, value)
click to toggle source
# File lib/table_help/formatter.rb, line 10 def format_value(name, value) TableHelp.config.formatter[:value].call(name, value) end