Sha256: ce4513ce20db327aae0519f5fa2666fb1cc2de306166411465153294d2c83dbb

Contents?: true

Size: 696 Bytes

Versions: 29

Compression:

Stored size: 696 Bytes

Contents

module Steep
  class Project
    attr_reader targets: Array[Target]

    attr_reader steepfile_path: Pathname

    def initialize: (steepfile_path: Pathname) -> void

    def base_dir: () -> Pathname

    def relative_path: (Pathname path) -> Pathname

    def absolute_path: (Pathname path) -> Pathname

    def target_for_source_path: (Pathname path) -> Target?

    # Returns target or array of targets that *can* contain given path
    #
    # * `Target` will return if `path` is a source code
    # * `Array[Target]` will return if `path` is a signature
    #
    # `path` can be non-existent file.
    #
    def targets_for_path: (Pathname path) -> (Target | Array[Target] | nil)
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
steep-1.6.0 sig/steep/project.rbs
steep-1.6.0.pre.4 sig/steep/project.rbs
steep-1.6.0.pre.3 sig/steep/project.rbs
steep-1.6.0.pre.2 sig/steep/project.rbs
steep-1.6.0.pre.1 sig/steep/project.rbs
steep-1.5.3 sig/steep/project.rbs
steep-1.5.2 sig/steep/project.rbs
steep-1.5.1 sig/steep/project.rbs
steep-1.5.0 sig/steep/project.rbs
steep-1.5.0.pre.6 sig/steep/project.rbs
steep-1.5.0.pre.5 sig/steep/project.rbs
steep-1.5.0.pre.4 sig/steep/project.rbs
steep-1.5.0.pre.3 sig/steep/project.rbs
steep-1.5.0.pre.2 sig/steep/project.rbs
steep-1.5.0.pre.1 sig/steep/project.rbs
steep-1.4.0 sig/steep/project.rbs
steep-1.4.0.dev.5 sig/steep/project.rbs
steep-1.4.0.dev.4 sig/steep/project.rbs
steep-1.4.0.dev.3 sig/steep/project.rbs
steep-1.3.2 sig/steep/project.rbs