Class: SlimLint::Filters::SplatProcessor

Inherits:
Slim::Filter
  • Object
show all
Defined in:
lib/slim_lint/filters/splat_processor.rb

Overview

A dumbed-down version of Slim::Splat::Filter which doesn’t introduced temporary variables or other cruft.

Instance Method Summary collapse

Instance Method Details

#on_slim_splat(code) ⇒ Array

Handle slim splat expressions ‘[:slim, :splat, code]`

Parameters:

  • code (String)

Returns:

  • (Array)


11
12
13
# File 'lib/slim_lint/filters/splat_processor.rb', line 11

def on_slim_splat(code)
  [:code, code]
end