Class: Vcvars::Locator::Installation

Inherits:
Struct
  • Object
show all
Defined in:
lib/vcvars/locator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#archObject

Returns the value of attribute arch

Returns:

  • (Object)

    the current value of arch



35
36
37
# File 'lib/vcvars/locator.rb', line 35

def arch
  @arch
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



35
36
37
# File 'lib/vcvars/locator.rb', line 35

def name
  @name
end

#vcvarsObject

Returns the value of attribute vcvars

Returns:

  • (Object)

    the current value of vcvars



35
36
37
# File 'lib/vcvars/locator.rb', line 35

def vcvars
  @vcvars
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



35
36
37
# File 'lib/vcvars/locator.rb', line 35

def version
  @version
end

#vs_pathObject

Returns the value of attribute vs_path

Returns:

  • (Object)

    the current value of vs_path



35
36
37
# File 'lib/vcvars/locator.rb', line 35

def vs_path
  @vs_path
end

Instance Method Details

#to_sObject



36
37
38
# File 'lib/vcvars/locator.rb', line 36

def to_s
  "#{name || 'Visual Studio'}#{version ? " (#{version})" : ''} at #{vs_path}"
end