module Minidown::HtmlHelper
Public Instance Methods
br_tag()
click to toggle source
# File lib/minidown/html_helper.rb, line 14 def br_tag '<br>' end
build_tag(name, attr = nil) { |content| ... }
click to toggle source
# File lib/minidown/html_helper.rb, line 3 def build_tag name, attr = nil content = '' yield content if block_given? if attr attr = attr.map{|k, v| "#{k}=\"#{v}\""}.join ' '.freeze "<#{name} #{attr}>#{content}</#{name}>" else "<#{name}>#{content}</#{name}>" end end