Class: Coalla::TableFormatter::SimpleFormatter
- Inherits:
-
Object
- Object
- Coalla::TableFormatter::SimpleFormatter
show all
- Defined in:
- lib/coalla/builders/table_formatter.rb
Overview
TODO (vl): move formatters to separate files and lambdas
Instance Method Summary
collapse
Instance Method Details
#customize(item) ⇒ Object
12
13
14
|
# File 'lib/coalla/builders/table_formatter.rb', line 12
def customize(item)
item
end
|
6
7
8
9
10
|
# File 'lib/coalla/builders/table_formatter.rb', line 6
def format_value(item, format)
return '' unless item
return format.call(item) if format.is_a?(Proc)
customize(item)
end
|