Method: CLIMarkdown::Colors#c

Defined in:
lib/mdless/colors.rb

#c(args) ⇒ Object



109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# File 'lib/mdless/colors.rb', line 109

def c(args)



  out = []

  args.each {|arg|
    if COLORS.key? arg
      out << COLORS[arg]
    end
  }

  if out.size > 0
    "\e[#{out.sort.join(';')}m"
  else
    ''
  end
end