Module: PriceTag::Processors::Markdown
- Extended by:
- Base
- Defined in:
- lib/pricetag/processors/markdown.rb
Class Method Summary collapse
Methods included from Base
Class Method Details
.text_for_references(references) ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/pricetag/processors/markdown.rb', line 34 def text_for_references(references) output = "\n\n" references.each_with_index do |reference, i| href, title = reference output << "[#{i+1}]: #{href}" output << " \"#{title}\"" if title and title != "" output << "\n" end return output end |