Class: Slim::Embedded::RubyEngine Private

Inherits:
Engine
  • Object
show all
Defined in:
lib/slim/embedded.rb

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

API:

  • private

Instance Method Summary collapse

Methods inherited from Filter

#on_slim_control, #on_slim_output, #on_slim_text

Instance Method Details

#on_slim_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.

API:

  • private



225
226
227
# File 'lib/slim/embedded.rb', line 225

def on_slim_embedded(engine, body, attrs)
  [:multi, [:newline], [:code, "#{collect_text(body)}\n"]]
end