Method: Vedeu::Presentation::Styles#render_style

Defined in:
lib/vedeu/presentation/styles.rb

#render_style(&block) ⇒ String (private)

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.

Renders the style attributes of the receiver and yields (to then render the next model, or finally, the content).

Parameters:

  • block (Proc)

Returns:

  • (String)


54
55
56
# File 'lib/vedeu/presentation/styles.rb', line 54

def render_style(&block)
  "#{style}#{yield}"
end