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

added Pry::Indent#reset method to clear out indentation levels and reset the stack

This commit is contained in:
John Mair 2011-10-09 06:21:26 +13:00
parent dc95ff8cc9
commit a73529bacf

View file

@ -58,6 +58,12 @@ class Pry
@stack = [] @stack = []
end end
##
# Get rid of all indentation
def reset
@stack.clear
end
## ##
# Indents a string and returns it. This string can either be a single line # Indents a string and returns it. This string can either be a single line
# or multiple ones. # or multiple ones.