Class: Vcdeps::Tool

Inherits:
Struct
  • Object
show all
Defined in:
lib/vcdeps/tool.rb

Overview

Where a usable vcpkg lives. source is one of :env, :devenv, :vs, :actions, :private (see ยง2.2). version is the date stamp parsed from vcpkg version.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#exeObject

Returns the value of attribute exe

Returns:

  • (Object)

    the current value of exe



9
10
11
# File 'lib/vcdeps/tool.rb', line 9

def exe
  @exe
end

#rootObject

Returns the value of attribute root

Returns:

  • (Object)

    the current value of root



9
10
11
# File 'lib/vcdeps/tool.rb', line 9

def root
  @root
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



9
10
11
# File 'lib/vcdeps/tool.rb', line 9

def source
  @source
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



9
10
11
# File 'lib/vcdeps/tool.rb', line 9

def version
  @version
end

Instance Method Details

#to_sObject

=> "vcpkg 2026-02-21 (vs) at C:...VC\vcpkg"



11
12
13
# File 'lib/vcdeps/tool.rb', line 11

def to_s
  "vcpkg #{version || '?'} (#{source}) at #{root}"
end