class Given

Renders if a condition is met

Public Instance Methods

to_html(body, context) click to toggle source
# File lib/emerald/nodes/given.rb, line 9
def to_html(body, context)
  if boolean_expr.truthy?(context)
    body.to_html(context)
  else
    ''
  end
end