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

moved remove_first_word to base_helpers

This commit is contained in:
John Mair 2011-05-06 15:34:27 +12:00
parent c7de349c02
commit 6d42e46d85

View file

@ -14,6 +14,10 @@ class Pry
end
end
def remove_first_word(text)
text.split.drop(1).join(' ')
end
# turn off color for duration of block
def no_color(&block)
old_color_state = Pry.color