Class: DebugMcp::Server::RackRequestAdapter
- Inherits:
-
Object
- Object
- DebugMcp::Server::RackRequestAdapter
- Defined in:
- lib/debug_mcp/server.rb
Overview
Minimal Rack::Request-compatible adapter for WEBrick
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(env) ⇒ RackRequestAdapter
constructor
A new instance of RackRequestAdapter.
Constructor Details
#initialize(env) ⇒ RackRequestAdapter
Returns a new instance of RackRequestAdapter.
319 320 321 |
# File 'lib/debug_mcp/server.rb', line 319 def initialize(env) @env = env end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
317 318 319 |
# File 'lib/debug_mcp/server.rb', line 317 def env @env end |
Instance Method Details
#body ⇒ Object
323 324 325 |
# File 'lib/debug_mcp/server.rb', line 323 def body @env["rack.input"] end |