Skip to content

Commit

Permalink
define String#termcolor
Browse files Browse the repository at this point in the history
  • Loading branch information
jugyo committed Dec 11, 2009
1 parent ed30bbe commit 7616d67
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/termcolor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,9 @@ def to_esc_seq(name)
end
end
end

class String
def termcolor
TermColor.parse(self)
end
end

0 comments on commit 7616d67

Please sign in to comment.