class ActionView::Template::Handlers::ERB::Erubi

def add_expression(indicator, code)

Experimental RBS support (using type sampling data from the type_fusion project).

def add_expression: (String indicator, String code) -> String

This signature was generated using 27 samples from 2 applications.

def add_expression(indicator, code)
  flush_newline_if_pending(src)
  if (indicator == "==") || @escape
    src << bufvar << ".safe_expr_append="
  else
    src << bufvar << ".append="
  end
  if BLOCK_EXPR.match?(code)
    src << " " << code
  else
    src << "(" << code << ");"
  end
end