Class: Jekyll::Converters::Opal
- Inherits:
-
Converter
- Object
- Converter
- Jekyll::Converters::Opal
- Defined in:
- lib/jekyll/converters/opal.rb
Instance Method Summary collapse
Instance Method Details
#convert(content) ⇒ Object
15 16 17 |
# File 'lib/jekyll/converters/opal.rb', line 15 def convert(content) ::Opal.compile(content) end |
#matches(ext) ⇒ Object
7 8 9 |
# File 'lib/jekyll/converters/opal.rb', line 7 def matches(ext) !!(ext =~ /\.opal/i) end |
#output_ext(ext) ⇒ Object
11 12 13 |
# File 'lib/jekyll/converters/opal.rb', line 11 def output_ext(ext) ".js" end |