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:
parent
c7de349c02
commit
6d42e46d85
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue