Class: Slimi::Filters::NewlineCollector Private

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

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

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(exp) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



23
24
25
26
27
# File 'lib/slimi/filters/embedded.rb', line 23

def call(exp)
  @collected = [:multi]
  super
  @collected
end

#on_newlineObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



29
30
31
32
# File 'lib/slimi/filters/embedded.rb', line 29

def on_newline
  @collected << [:newline]
  nil
end