module Lono::Configset::Strategy::Helpers::Erb

Public Instance Methods

indent(text, indentation_amount) click to toggle source
# File lib/lono/configset/strategy/helpers/erb.rb, line 3
def indent(text, indentation_amount)
  text.split("\n").map do |line|
    " " * indentation_amount + line
  end.join("\n")
end