Sha256: 930047dd0fa2418ead07524927f4c8489be8f7224ad40bc9f77d54e590efee2a

Contents?: true

Size: 488 Bytes

Versions: 23

Compression:

Stored size: 488 Bytes

Contents

# frozen_string_literal: true

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
    # Converts the given {Array} to a {SlimLint::Sexp}.
    #
    # @param array_sexp [Array]
    # @return [SlimLint::Sexp]
    def call(array_sexp)
      SlimLint::Sexp.new(array_sexp)
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
slim_lint-0.31.1 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.31.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.30.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.29.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.28.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.27.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.26.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.25.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.24.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.23.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.22.1 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.22.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.21.1 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.21.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.20.2 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.20.1 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.20.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.19.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.18.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.17.1 lib/slim_lint/filters/sexp_converter.rb