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.
309 310 311 |
# File 'lib/debug_mcp/server.rb', line 309 def initialize(env) @env = env end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
307 308 309 |
# File 'lib/debug_mcp/server.rb', line 307 def env @env end |
Instance Method Details
#body ⇒ Object
313 314 315 |
# File 'lib/debug_mcp/server.rb', line 313 def body @env["rack.input"] end |