module GraphQL::Language::Comment
Public Class Methods
Source
# File lib/graphql/language/comment.rb, line 6 def self.print(str, indent: '') lines = str.split("\n").map do |line| comment_str = "".dup comment_str << indent comment_str << "# " comment_str << line comment_str.rstrip end lines.join("\n") + "\n" end