Class: Slimi::Filters::TextCollector 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.



9
10
11
12
13
# File 'lib/slimi/filters/embedded.rb', line 9

def call(exp)
  @collected = +''
  super
  @collected
end

#on_slimi_interpolate(_, _, text) ⇒ 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.



15
16
17
18
# File 'lib/slimi/filters/embedded.rb', line 15

def on_slimi_interpolate(_, _, text)
  @collected << text
  nil
end