Class: Formatting::HeaderFormatter
- Inherits:
-
Object
- Object
- Formatting::HeaderFormatter
- Defined in:
- lib/formatting.rb
Overview
CellFormatter class format field name in header
Class Method Summary collapse
-
.format_value(value, opts) ⇒ String
Formatted string value.
Class Method Details
.format_value(value, opts) ⇒ String
Returns Formatted string value.
47 48 49 50 |
# File 'lib/formatting.rb', line 47 def self.format_value(value,opts) field = value.gsub('_',' ') Formatting.format_value_by_width_and_just(field,opts[:max_width],opts[:just]) end |