Class: Slimi::Filters::Embedded::RubyEngine Private
Overview
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.
Embeds ruby code
Instance Method Summary collapse
Methods inherited from Base
#on_slimi_control, #on_slimi_output, #on_slimi_position, #on_slimi_text
Instance Method Details
#on_slimi_embedded(_engine, body, _attrs) ⇒ 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.
233 234 235 |
# File 'lib/slimi/filters/embedded.rb', line 233 def (_engine, body, _attrs) [:multi, [:newline], [:code, "#{collect_text(body)}\n"]] end |