Class: Vcdeps::Tool
- Inherits:
-
Struct
- Object
- Struct
- Vcdeps::Tool
- 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
-
#exe ⇒ Object
Returns the value of attribute exe.
-
#root ⇒ Object
Returns the value of attribute root.
-
#source ⇒ Object
Returns the value of attribute source.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#to_s ⇒ Object
=> "vcpkg 2026-02-21 (vs) at C:...VC\vcpkg".
Instance Attribute Details
#exe ⇒ Object
Returns the value of attribute exe
9 10 11 |
# File 'lib/vcdeps/tool.rb', line 9 def exe @exe end |
#root ⇒ Object
Returns the value of attribute root
9 10 11 |
# File 'lib/vcdeps/tool.rb', line 9 def root @root end |
#source ⇒ Object
Returns the value of attribute source
9 10 11 |
# File 'lib/vcdeps/tool.rb', line 9 def source @source end |
#version ⇒ Object
Returns the value of attribute version
9 10 11 |
# File 'lib/vcdeps/tool.rb', line 9 def version @version end |
Instance Method Details
#to_s ⇒ Object
=> "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 |