lib/tilt/mapping.rb
# Finds the extensions the template class has been registered under.
# @param [template class] template_class
Finds the extensions the template class has been registered under.
Finds the extensions the template class has been registered under .
def extensions_for(template_class)
      res = []
      template_map.each do |ext, klass|
        res << ext if template_class == klass
      end
      lazy_map.each do |ext, choices|
        res << ext if choices.any? { |klass, file| template_class.to_s == klass }
      end
      res
    end
def extensions_for ( template_class ) res = [ ] template_map . each do | ext , klass | res << ext if template_class == klass end lazy_map . each do | ext , choices | res << ext if choices . any? { | klass , file | template_class . to_s == klass } end res end
Finds the extensions the template class has been registered under.
Finds the extensions the template class has been registered under .
template_class
<not_specific>
<not_specific>
None