Class: SlimLint::Filters::SexpConverter

Inherits:
Temple::Filter
  • Object
show all
Defined in:
lib/slim_lint/filters/sexp_converter.rb

Overview

Converts a Temple S-expression comprised of Arrays into Sexps.

These Sexps include additional helpers that makes working with them more pleasant.

Instance Method Summary collapse

Instance Method Details

#call(array_sexp) ⇒ SlimLint::Sexp

Converts the given Array to a Sexp.

Parameters:

  • array_sexp (Array)

Returns:



13
14
15
# File 'lib/slim_lint/filters/sexp_converter.rb', line 13

def call(array_sexp)
  SlimLint::Sexp.new(array_sexp)
end