Method: Flame::Dispatcher#body

Defined in:
lib/flame/dispatcher.rb

#body(value = nil) ⇒ String

Acccess to the body of response

Examples:

Set body value

body 'Hello World!'

Parameters:

  • value (String, nil) (defaults to: nil)

    string value for new body

Returns:

  • (String)

    current body



60
61
62
# File 'lib/flame/dispatcher.rb', line 60

def body(value = nil)
	value ? @body = value : @body ||= ''
end