class MCMarkdown::Parser::Formatter

Public Instance Methods

format(tag) click to toggle source
# File lib/mc_markdown/parsers/formatter.rb, line 6
def format tag
  if self.respond_to? tag.type
    self.public_send(tag.type, tag.attributes)
  else
    tag.orig
  end
end