1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

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

View file

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