Class: Bunto::Converters::Identity

Inherits:
Bunto::Converter show all
Defined in:
lib/bunto/converters/identity.rb

Constant Summary

Constants inherited from Plugin

Plugin::PRIORITIES

Instance Method Summary collapse

Methods inherited from Bunto::Converter

highlighter_prefix, #highlighter_prefix, highlighter_suffix, #highlighter_suffix, #initialize

Methods inherited from Plugin

#<=>, <=>, catch_inheritance, descendants, inherited, #initialize, priority, safe

Constructor Details

This class inherits a constructor from Bunto::Converter

Instance Method Details

#convert(content) ⇒ Object



16
17
18
# File 'lib/bunto/converters/identity.rb', line 16

def convert(content)
  content
end

#matches(_ext) ⇒ Object



8
9
10
# File 'lib/bunto/converters/identity.rb', line 8

def matches(_ext)
  true
end

#output_ext(ext) ⇒ Object



12
13
14
# File 'lib/bunto/converters/identity.rb', line 12

def output_ext(ext)
  ext
end