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 3 samples from 1 application.

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