Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2_2_9) is shown here.
trim(n)
public
Trim n innermost scope levels from the scope. In no case will this
trim beyond the toplevel scope.
# File lib/rake/scope.rb, line 16
def trim(n)
result = self
while n > 0 && ! result.empty?
result = result.tail
n -= 1
end
result
end