Sha256: c2dc865c30497af9d8cd3b586ad2293f620de93a36ff6258bc6ca1c927e4e936

Contents?: true

Size: 457 Bytes

Versions: 20

Compression:

Stored size: 457 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
    # 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

20 entries across 20 versions & 1 rubygems

Version Path
slim_lint-0.15.1 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.15.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.14.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.13.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.12.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.11.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.10.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.9.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.8.3 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.8.2 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.8.1 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.8.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.7.2 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.7.1 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.7.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.6.1 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.6.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.5.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.4.0 lib/slim_lint/filters/sexp_converter.rb
slim_lint-0.3.0 lib/slim_lint/filters/sexp_converter.rb