Class: FastHaml::FilterCompilers::Ruby

Inherits:
Base
  • Object
show all
Defined in:
lib/fast_haml/filter_compilers/ruby.rb

Instance Method Summary collapse

Instance Method Details

#compile(texts) ⇒ Object



6
7
8
# File 'lib/fast_haml/filter_compilers/ruby.rb', line 6

def compile(texts)
  [:multi, [:newline], [:code, strip_last_empty_lines(texts).join("\n")]]
end