Class: OmniAI::MCP::Transport::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/omniai/mcp/transport/base.rb

Overview

Examples:

transport = OmniAI::MCP::Transport::Base.new
transport.puts("Hello World")
transport.gets

Direct Known Subclasses

Stdio

Instance Method Summary collapse

Instance Method Details

#getsString

Returns:

  • (String)

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/omniai/mcp/transport/base.rb', line 17

def gets
  raise NotImplementedError, "#{self.class}#gets undefined"
end

#puts(text) ⇒ Object

Parameters:

  • text (String)

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/omniai/mcp/transport/base.rb', line 12

def puts(text)
  raise NotImplementedError, "#{self.class}#gets undefined"
end