Sha256: 34ec12c112e051cefdcc03f0db6208d57ae3824574bf69685a92343e4013777e

Contents?: true

Size: 332 Bytes

Versions: 2

Compression:

Stored size: 332 Bytes

Contents

module SlimLint::Filters
  # Converts a Temple S-expression comprised of {Array}s into {SlimLint::Sexp}s.
  #
  # These {SlimLint::Sexp}s include additional helpers that makes working with
  # them more pleasant.
  class SexpConverter < Temple::Filter
    def call(array_sexp)
      SlimLint::Sexp.new(array_sexp)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slim_lint-0.2.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.1.0 lib/slim_lint/filters/sexp_converter.rb