class Markdown
Public Instance Methods
code(text)
click to toggle source
# File lib/minitest/markdown.rb, line 22 def code text text = text.is_a?(Hash) ? text : eval(text.gsub('null', 'nil')) "```json \n " + JSON.pretty_generate(text) + "\n" + "```" end
default(text)
click to toggle source
# File lib/minitest/markdown.rb, line 14 def default text text end
header(text)
click to toggle source
# File lib/minitest/markdown.rb, line 2 def header text '# ' + text end
italic(text)
click to toggle source
# File lib/minitest/markdown.rb, line 29 def italic text "*#{text}*" end
next_line()
click to toggle source
# File lib/minitest/markdown.rb, line 18 def next_line '' end
sub_header(text)
click to toggle source
# File lib/minitest/markdown.rb, line 6 def sub_header text '## ' + text end
sub_sub_header(text)
click to toggle source
# File lib/minitest/markdown.rb, line 10 def sub_sub_header text '### ' + text end