Class: TableHelpers::SimpleFormatter

Inherits:
Object
  • Object
show all
Defined in:
app/utils/table_helpers.rb

Instance Method Summary collapse

Instance Method Details

#format_value(item, format) ⇒ Object



4
5
6
7
8
9
10
11
# File 'app/utils/table_helpers.rb', line 4

def format_value(item, format)
  case format
    when Proc
      format.call(item)
    else
      item
  end
end