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
- .match?(pattern, host) ⇒ Boolean private
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.
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 |