Module: Steep::Services::HoverProvider::SingletonMethods
- Included in:
- Steep::Services::HoverProvider
- Defined in:
- lib/steep/services/hover_provider/singleton_methods.rb
Instance Method Summary collapse
Instance Method Details
#content_for(service:, path:, line:, column:) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/steep/services/hover_provider/singleton_methods.rb', line 5 def content_for(service:, path:, line:, column:) project = service.project case when target = project.target_for_source_path(path) Ruby.new(service: service).content_for(target: target, path: path, line: line, column: column) when target = project.target_for_signature_path(path) RBS.new(service: service).content_for(target: target, path: path, line: line, column: column) end end |