lib/earthquake/ext.rb in earthquake-0.4.2 vs lib/earthquake/ext.rb in earthquake-0.4.3
- old
+ new
@@ -1,7 +1,5 @@
class String
- alias_method :t, :termcolor
-
- def e
- TermColor.escape(self)
+ def c(*codes)
+ "\e[#{codes.join;}m#{self}\e[0m"
end
end
\ No newline at end of file