Module: OllamaAgent::Tools::HttpHostPattern Private

Defined in:
lib/ollama_agent/tools/http_tools.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.match?(pattern, host) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


13
14
15
# File 'lib/ollama_agent/tools/http_tools.rb', line 13

def match?(pattern, host)
  pattern.is_a?(Regexp) ? pattern.match?(host) : pattern == host
end