Sha256: 5e7d0944923a41e510d7da908c8a1c821ec892801cd9a990d5b85ebe0a17be49
Contents?: true
Size: 391 Bytes
Versions: 23
Compression:
Stored size: 391 Bytes
Contents
# frozen_string_literal: true module GraphQL module Language module Comment 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 end end end
Version data entries
23 entries across 23 versions & 1 rubygems