lib/roda/plugins/sinatra_helpers.rb
# Set or retrieve the response body. When a block is given,
# evaluation is deferred until the body is needed.
Set or retrieve the response body. When a block is given,
evaluation is deferred until the body is needed.
Set or retrieve the response body . When a block is given evaluation is deferred until the body is needed .
def body(value = (return @body unless defined?(yield); nil), &block)
          if block
            @body = DelayedBody.new(&block)
          else
            self.body = value
          end
        end
def body ( value = ( return @body unless defined? ( yield ) ; nil ) , & block ) if block @body = DelayedBody . new ( & block ) else self . body = value end end
Set or retrieve the response body.
Set or retrieve the response body .
value
block