Sha256: 0b99ebe8884d7681d03642a81c36db8c358fbdcbe2e5e18b20958ff1701035da
Contents?: true
Size: 415 Bytes
Versions: 38
Compression:
Stored size: 415 Bytes
Contents
# frozen_string_literal: true module Stepmod module Utils module Converters class Comment < ReverseAdoc::Converters::Base def convert(node, _state = {}) comment = node.text.strip.split("\n").map do |line| "\n// #{line}" end.join("\n") "#{comment}\n" end end ReverseAdoc::Converters.register :comment, Comment.new end end end
Version data entries
38 entries across 38 versions & 1 rubygems