Class: Rack::App::Payload::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/app/payload/builder.rb

Instance Method Summary collapse

Instance Method Details

#parser_builder(&block) ⇒ Object Also known as: parser, configure_parser



3
4
5
6
7
# File 'lib/rack/app/payload/builder.rb', line 3

def parser_builder(&block)
  @parser_builder ||= Rack::App::Payload::Parser::Builder.new
  @parser_builder.instance_exec(&block) if block
  @parser_builder
end