class Fbe::Middleware::Formatter

def shifted(txt)

Returns:
  • (String) - The indented text, or an empty string if input was nil

Parameters:
  • txt (String, nil) -- The text to indent
def shifted(txt)
  return '' if txt.nil?
  "  #{txt.gsub("\n", "\n  ")}"
end