Class: Slimi::Filters::Control

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

Overview

Handle ‘[:slimi, :control, code, multi]`.

Instance Method Summary collapse

Methods inherited from Base

#on_slimi_embedded, #on_slimi_output, #on_slimi_position, #on_slimi_text

Instance Method Details

#on_slimi_control(code, multi) ⇒ Array

Parameters:

  • code (String)
  • multi (Array)

Returns:

  • (Array)


10
11
12
13
14
15
16
# File 'lib/slimi/filters/control.rb', line 10

def on_slimi_control(code, multi)
  [
    :multi,
    [:code, code],
    compile(multi)
  ]
end