Sha256: 7efa8837132c8c561a2af37c00205e594fb1f6ae7b19274792021822a794d1af

Contents?: true

Size: 618 Bytes

Versions: 17

Compression:

Stored size: 618 Bytes

Contents

module Steep
  module Services
    module HoverProvider
      module SingletonMethods
        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
      end

      extend SingletonMethods
    end
  end
end

Version data entries

17 entries across 17 versions & 3 rubygems

Version Path
steep-1.10.0 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.10.0.pre.3 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.10.0.pre.2 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.10.0.pre.1 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.10.0.dev.1 lib/steep/services/hover_provider/singleton_methods.rb
steep-relaxed-1.9.4.3 lib/steep/services/hover_provider/singleton_methods.rb
steep-relaxed-1.9.3.3 lib/steep/services/hover_provider/singleton_methods.rb
steep-activesupport-4-1.9.4 lib/steep/services/hover_provider/singleton_methods.rb
steep-activesupport-4-1.9.3.1 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.9.4 lib/steep/services/hover_provider/singleton_methods.rb
steep-activesupport-4-1.9.3 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.9.3 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.9.2 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.9.1 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.9.0 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.9.0.dev.2 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.9.0.dev.1 lib/steep/services/hover_provider/singleton_methods.rb