Class: Slim::NewlineCollector Private
- Defined in:
- lib/slim/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
- #call(exp) ⇒ Object private
- #on_newline ⇒ Object private
Methods inherited from Filter
#on_slim_control, #on_slim_embedded, #on_slim_output, #on_slim_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.
19 20 21 22 23 |
# File 'lib/slim/embedded.rb', line 19 def call(exp) @collected = [:multi] super(exp) @collected end |
#on_newline ⇒ 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.
25 26 27 28 |
# File 'lib/slim/embedded.rb', line 25 def on_newline @collected << [:newline] nil end |