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:
parent
dc95ff8cc9
commit
a73529bacf
1 changed files with 6 additions and 0 deletions
|
@ -58,6 +58,12 @@ class Pry
|
|||
@stack = []
|
||||
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
|
||||
# or multiple ones.
|
||||
|
|
Loading…
Reference in a new issue