Sha256: fd2f80812ffd10f9f924e6e1bb949d91a1a32368a61a057548c3caab82324251

Contents?: true

Size: 722 Bytes

Versions: 3

Compression:

Stored size: 722 Bytes

Contents

module Steep
  class Project
    attr_reader targets: Array[Target]

    attr_reader steepfile_path: Pathname?

    attr_reader base_dir: Pathname

    def initialize: (steepfile_path: Pathname?, ?base_dir: Pathname?) -> void

    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

3 entries across 3 versions & 1 rubygems

Version Path
steep-1.7.0.dev.3 sig/steep/project.rbs
steep-1.7.0.dev.2 sig/steep/project.rbs
steep-1.7.0.dev.1 sig/steep/project.rbs