Class: NvimContext::Fetcher
- Inherits:
-
Object
- Object
- NvimContext::Fetcher
- Defined in:
- lib/nvim_context/fetcher.rb
Class Method Summary collapse
Class Method Details
.fetch ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/nvim_context/fetcher.rb', line 8 def fetch context = build_context JSON.generate(context) rescue ConnectionError => e format_error("Connection failed", e.) rescue ContextError => e format_error("Context extraction failed", e.) rescue StandardError => e format_error("Unexpected error", e.) end |