samples/trivial.rb in d-mark-0.2.0 vs samples/trivial.rb in d-mark-1.0.0a1
- old
+ new
@@ -3,10 +3,10 @@
class MyHTMLTranslator < DMark::Translator
def handle(node)
case node
when String
out << node
- when DMark::Parser::ElementNode
+ when DMark::ElementNode
out << "<#{node.name}>"
handle_children(node)
out << "</#{node.name}>"
end
end