Class: Jekyll::Ptm::PtmConverter

Inherits:
Converter
  • Object
show all
Defined in:
lib/jekyll/ptm.rb

Overview

class Jekyll::Ptm::PtmConverter

Instance Method Summary collapse

Instance Method Details

#convert(content) ⇒ Object



21
22
23
# File 'lib/jekyll/ptm.rb', line 21

def convert(content)
  "<h1>Custom Format Rendered</h1><pre>#{content}</pre>"
end

#matches(ext) ⇒ Object



13
14
15
# File 'lib/jekyll/ptm.rb', line 13

def matches(ext)
  ext.downcase == ".ptm"
end

#output_ext(_ext) ⇒ Object



17
18
19
# File 'lib/jekyll/ptm.rb', line 17

def output_ext(_ext)
  ".html"
end