Class: Haml::Compiler
Instance Attribute Summary collapse
-
#options
Returns the value of attribute options.
Instance Method Summary collapse
-
#call(node)
-
#compile(node)
-
#initialize(options) ⇒ Compiler
constructor
A new instance of Compiler.
Methods included from Util
#balance, #check_encoding, #check_haml_encoding, #contains_interpolation?, #handle_interpolation, #html_safe, #human_indentation, #inspect_obj, #rails_xss_safe?, #silence_warnings, #unescape_interpolation
Constructor Details
#initialize(options) ⇒ Compiler
Returns a new instance of Compiler
13 14 15 16 17 18 19 20 |
# File 'lib/haml/compiler.rb', line 13
def initialize(options)
@options = Options.wrap(options)
@to_merge = []
@temple = [:multi]
@node = nil
@filters = Filters.defined.merge(options[:filters])
@attribute_compiler = AttributeCompiler.new(@options)
end
|