Module: Coradoc::Html::FormatDetection
- Included in:
- Input::Html, Output::HtmlSpa, Output::HtmlStatic
- Defined in:
- lib/coradoc/html.rb
Instance Method Summary collapse
Instance Method Details
#html_extension?(filename) ⇒ Boolean
8 9 10 |
# File 'lib/coradoc/html.rb', line 8 def html_extension?(filename) HTML_EXTENSIONS.any? { |ext| filename.downcase.end_with?(ext) } end |