method

indent

rails latest stable - Class: Rails::Generators::NamedBase

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.1.7) is shown here.

indent(content, multiplier = 2)
private

No documentation available.

# File railties/lib/rails/generators/named_base.rb, line 56
        def indent(content, multiplier = 2) # :doc:
          spaces = " " * multiplier
          content.each_line.map { |line| line.blank? ? line : "#{spaces}#{line}" }.join
        end