class Markdown::Testsuite::Test
Attributes
html[R]
md[R]
Public Class Methods
new(rule, ext=nil)
click to toggle source
# File lib/markdown/testsuite/test.rb, line 9 def initialize(rule, ext=nil) path = ext.nil? ? "#{SPEC_PATH}/" : "#{SPEC_PATH}/extensions/#{ext.to_s}/" begin @md = File.read "#{path}#{rule}.md" @html = File.read "#{path}#{rule}.out" rescue Exception => e raise Exception.new "Rule #{rule} not found - #{e}" end end