require 'faml/filter_compilers/base' module Faml module FilterCompilers class Ruby < Base def need_newline? false end def compile(texts) [:multi, [:newline], [:code, strip_last_empty_lines(texts).join("\n")]] end end register(:ruby, Ruby) end end