Class: Hamlit::Filters::Css

Inherits:
Base
  • Object
show all
Defined in:
lib/hamlit/filters/css.rb

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#compile_lines, indent_source, #initialize

Constructor Details

This class inherits a constructor from Hamlit::Filters::Base

Instance Method Details

#compile(lines) ⇒ Object



6
7
8
9
10
# File 'lib/hamlit/filters/css.rb', line 6

def compile(lines)
  return compile_xhtml(lines) if options[:format] == :xhtml

  compile_html(lines)
end