Class: Faml::FilterCompilers::Ruby

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

Instance Method Summary collapse

Instance Method Details

#compile(ast) ⇒ Object



11
12
13
# File 'lib/faml/filter_compilers/ruby.rb', line 11

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

#need_newline?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/faml/filter_compilers/ruby.rb', line 7

def need_newline?
  false
end