class Mail::Message

def body(value = nil)

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

def body: (?nil value) -> Mail::Body

This signature was generated using 1 sample from 1 application.

mail.body #=> #mail = Mail::Message.new('To: mikel\r\n\r\nThis is the body')

Example:

a parameter sets the value.
Returns the body of the message object. Or, if passed
def body(value = nil)
  if value
    self.body = value
  else
    process_body_raw if @body_raw
    @body
  end
end