method
strip_leading_spaces
v2_6_3 -
Show latest stable
- Class:
Bundler::UI::Shell
strip_leading_spaces(text)private
No documentation available.
# File lib/bundler/ui/shell.rb, line 126
def strip_leading_spaces(text)
spaces = text[/\A\s+/, 0]
spaces ? text.gsub(/#{spaces}/, "") : text
end