Method: String#ansi_attributes

Defined in:
lib/string.rb

#ansi_attributes(*args) ⇒ Object



14
15
16
# File 'lib/string.rb', line 14

def ansi_attributes(*args)
  "\e[#{args.join(';')}m#{self}\e[0m"
end