Sha256: 9605d607214779de4b19fbdb5ef716d64efc9c0ade635ac61fdfa827318e2866

Contents?: true

Size: 391 Bytes

Versions: 23

Compression:

Stored size: 391 Bytes

Contents

# frozen_string_literal: true

module SlimLint::Filters
  # A dumbed-down version of {Slim::Splat::Filter} which doesn't introduced
  # temporary variables or other cruft.
  class SplatProcessor < Slim::Filter
    # Handle slim splat expressions `[:slim, :splat, code]`
    #
    # @param code [String]
    # @return [Array]
    def on_slim_splat(code)
      [:code, code]
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
slim_lint-0.17.0 lib/slim_lint/filters/splat_processor.rb
slim_lint-0.16.1 lib/slim_lint/filters/splat_processor.rb
slim_lint-0.16.0 lib/slim_lint/filters/splat_processor.rb