Class: TM::Format::Pretty

Inherits:
Object
  • Object
show all
Includes:
TM::Format
Defined in:
lib/tm/format/pretty.rb

Constant Summary

Constants included from TM::Format

COMMENT_KEYS, PROJECT_KEYS, TICKET_KEYS

Instance Method Summary collapse

Methods included from TM::Format

#after, #before, #normalize_entity

Instance Method Details

#format(entity) ⇒ Object



8
9
10
11
12
13
# File 'lib/tm/format/pretty.rb', line 8

def format(entity)
  normalize_entity(entity).each_pair do |title, value|
    printf("%s: ", title.bright)
    printf("%s\n", value.to_s.color(:green))
  end
end