Method: Jekyll::Site#getConverterImpl
- Defined in:
- lib/jekyll/site.rb
#getConverterImpl(klass) ⇒ Object
Get the implementation class for the given Converter.
klass - The Class of the Converter to fetch.
Returns the Converter instance implementing the given Converter.
334 335 336 337 338 339 340 341 |
# File 'lib/jekyll/site.rb', line 334 def getConverterImpl(klass) matches = self.converters.select { |c| c.class == klass } if impl = matches.first impl else raise "Converter implementation not found for #{klass}" end end |