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

def flush_newline_if_pending(src)

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

def flush_newline_if_pending: (String src) -> Integer?

This signature was generated using 53 samples from 1 application.

def flush_newline_if_pending(src)
  if @newline_pending > 0
    src << bufvar << ".safe_append='#{"\n" * @newline_pending}'.freeze;"
    @newline_pending = 0
  end
end