class HammerCLI::Output::Formatters::ColorFormatter

Public Class Methods

new(color) click to toggle source
# File lib/hammer_cli/output/formatters.rb, line 68
def initialize(color)
  @color = color
end

Public Instance Methods

format(data, field_params={}) click to toggle source
# File lib/hammer_cli/output/formatters.rb, line 76
def format(data, field_params={})
  c = HighLine.color(data.to_s, @color)
end
tags() click to toggle source
# File lib/hammer_cli/output/formatters.rb, line 72
def tags
  [:screen, :flat]
end