class Formatting::HeaderFormatter
CellFormatter
class format field name in header
Public Class Methods
format_value(value,opts)
click to toggle source
@param [String] String value for formatting @param opts [Hash] options: format, max width, alignment @return [String] Formatted string value
# 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