class Creq::PubWriter

Protected Instance Methods

attributes(r) click to toggle source
Calls superclass method Creq::DocWriter#attributes
# File lib/creq/pub_writer.rb, line 11
def attributes(r)
  return "" if r[:skip_meta]
  attributes = {id: r.id}.merge(r.attributes)
  r.attributes.clear
  attributes.each{|k, v| r[k] = v}
  super(r)
end
title(r) click to toggle source
# File lib/creq/pub_writer.rb, line 25
def title(r)
  "#{'#' * r.level} #{r.title} {##{url(r.id)}}"
end