Class: Slimi::Filters::Amble

Inherits:
Base
  • Object
show all
Defined in:
lib/slimi/filters/amble.rb

Overview

Support Rails annotate_rendered_view_with_filenames feature.

Instance Method Summary collapse

Methods inherited from Base

#on_slimi_control, #on_slimi_embedded, #on_slimi_output, #on_slimi_position, #on_slimi_text

Instance Method Details

#call(expression) ⇒ Array

Parameters:

  • expression (Array)

Returns:

  • (Array)


14
15
16
17
18
19
20
# File 'lib/slimi/filters/amble.rb', line 14

def call(expression)
  result = %i[multi]
  result << [:static, options[:preamble]] if options[:preamble]
  result << expression
  result << [:static, options[:postamble]] if options[:postamble]
  result
end