Class: DebugMcp::Server::RackRequestAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/debug_mcp/server.rb

Overview

Minimal Rack::Request-compatible adapter for WEBrick

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#envObject (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

#bodyObject



313
314
315
# File 'lib/debug_mcp/server.rb', line 313

def body
  @env["rack.input"]
end