module RgGen::Markdown::Utility

Public Instance Methods

create_blank_file(path) click to toggle source
# File lib/rggen/markdown/utility.rb, line 8
def create_blank_file(path)
  SourceFile.new(path)
end

Private Instance Methods

anchor(id) click to toggle source
# File lib/rggen/markdown/utility.rb, line 14
def anchor(id)
  "<div id=\"#{id}\"></div>"
end
table(labels, rows) click to toggle source
# File lib/rggen/markdown/utility.rb, line 26
def table(labels, rows)
  TableFormatter.new.format(labels, rows)
end
trim_space(string) click to toggle source
# File lib/rggen/markdown/utility.rb, line 22
def trim_space(string)
  string.to_s.split(newline).map(&:strip).reject(&:empty?).join('<br>')
end