Sha256: f72a84236feff0c0ac25e11c07de611b1f1a645d7e1d056b0c0ea5ab97999bb1

Contents?: true

Size: 590 Bytes

Versions: 42

Compression:

Stored size: 590 Bytes

Contents

module Steep
  module Services
    module HoverProvider
      module SingletonMethods
        def content_for(service:, path:, line:, column:)
          project = service.project

          case (target = project.targets_for_path(path))
          when Project::Target
            Ruby.new(service: service).content_for(target: target, path: path, line: line, column: column)
          when Array
            RBS.new(service: service).content_for(target: target[0], path: path, line: line, column: column)
          end
        end
      end

      extend SingletonMethods
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
steep-1.8.3 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.8.2 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.8.1 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.8.0 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.8.0.pre.2 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.8.0.pre.1 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.8.0.dev.2 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.8.0.dev.1 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.7.1 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.7.0 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.7.0.dev.3 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.7.0.dev.2 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.7.0.dev.1 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.6.0 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.6.0.pre.4 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.6.0.pre.3 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.6.0.pre.2 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.6.0.pre.1 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.5.3 lib/steep/services/hover_provider/singleton_methods.rb
steep-1.5.2 lib/steep/services/hover_provider/singleton_methods.rb