class Rufo::Formatter

def maybe_inline_body(body)

def maybe_inline_body(body)
  skip_space
  if semicolon? && empty_body?(body)
    next_token
    skip_space
    if newline?
      skip_space_or_newline
      visit body
    else
      write "; "
      skip_space_or_newline
      consume_keyword "end"
    end
  else
    visit body
  end
end