Sha256: aeb25e0f791f374b7372b5885c6dc4eae5e4fd63c16642a8ea35f4cc807931d0

Contents?: true

Size: 360 Bytes

Versions: 19

Compression:

Stored size: 360 Bytes

Contents

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

19 entries across 19 versions & 1 rubygems

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