Module: PriceTag::Processors::Textile

Extended by:
Base
Defined in:
lib/pricetag/processors/textile.rb

Constant Summary collapse

INLINE_TAG_SYMBOLS =
{
  :span   => "%",
  :em     => "_",
  :i      => "__",
  :strong => "*",
  :b      => "**",
  :cite   => "??",
  :del    => "-",
  :ins    => "+",
  :sup    => "^",
  :sub    => "~"
}

Class Method Summary collapse

Methods included from Base

process!

Class Method Details

.text_for_references(references) ⇒ Object



47
48
49
50
51
52
53
54
55
# File 'lib/pricetag/processors/textile.rb', line 47

def text_for_references(references)
  output = "\n\n"
  references.each_with_index do |reference, i|
    href, title = reference
    output << "[#{i+1}]#{href}\n"
  end

  return output
end