Alias "gr(a|e)y" to "bright_black"

This commit is contained in:
Rob Gleeson 2011-05-06 16:43:11 +01:00
parent 0c3fc8bfaf
commit a86ddc550a
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,9 @@ class Pry
end end
end end
alias_method :grey, :bright_black
alias_method :gray, :bright_black
def strip_color text def strip_color text
text.gsub /\e\[.*?(\d)+m/, '' text.gsub /\e\[.*?(\d)+m/, ''
end end