Module: Rack::App::SingletonMethods::Payload
- Included in:
- Rack::App::SingletonMethods
- Defined in:
- lib/rack/app/singleton_methods/payload.rb
Instance Method Summary collapse
Instance Method Details
#payload(&block) ⇒ Object
3 4 5 6 7 |
# File 'lib/rack/app/singleton_methods/payload.rb', line 3 def payload(&block) @payload_builder ||= Rack::App::Payload::Builder.new @payload_builder.instance_exec(&block) if block @payload_builder end |