module Pry::Helpers::Text

def indent(text, chars)

Parameters:
  • chars (Fixnum) --
  • text (String) --
def indent(text, chars)
  text.lines.map { |l| "#{' ' * chars}#{l}" }.join
end