lib/makefile.rb
def format
      s = @target + ":"
      unless @dependencies.empty?
        s << " " << @dependencies.join(" ")
      end
      s << "\n"
      s << @recipe.map { |line| "\t" + line.gsub("\n", "\n\t") + "\n" }.join
      s
    end
# Format this rule as a Makefile rule.
#
# Recipes that have multiline statements will have tabs inserted after each
# newline to ensure that the recipe is parsed as part of a single makefile rule.
#
# @return [String]
Format this rule as a Makefile rule.
Recipes that have multiline statements will have tabs inserted after each
newline to ensure that the recipe is parsed as part of a single makefile rule.
Format this rule as a Makefile rule . Recipes that have multiline statements will have tabs inserted after each newline to ensure that the recipe is parsed as part of a single makefile rule .
def format
      s = @target + ":"
      unless @dependencies.empty?
        s << " " << @dependencies.join(" ")
      end
      s << "\n"
      s << @recipe.map { |line| "\t" + line.gsub("\n", "\n\t") + "\n" }.join
      s
    end
def format s = @target + ":" unless @dependencies . empty? s << " " << @dependencies . join ( " " ) end s << "\n" s << @recipe . map { | line | "\t" + line . gsub ( "\n" , "\n\t" ) + "\n" } . join s end
Format this rule as a Makefile rule.
Format this rule as a Makefile rule .
None
String