Could you tell me what the question mark means again?


Could you tell me what the ? mark means again?

def create_record(attributes, raise_error = false)
  record = build_record(attributes)
  yield(record) if block_given?
  saved =
  raise if !saved && raise_error


It doesn't really mean anything. It's a convention (which you should use).
Some functions end in a question mark, and by convention this means that the function will return a boolean (true or false).

I see most of these functions as actually giving an answer to a true or false question.