Class: U3d::WindowsInstallationHelper
- Inherits:
-
Object
- Object
- U3d::WindowsInstallationHelper
- Defined in:
- lib/u3d/installation.rb
Instance Method Summary collapse
- #build_number ⇒ Object
-
#initialize(exe_path) ⇒ WindowsInstallationHelper
constructor
A new instance of WindowsInstallationHelper.
- #version ⇒ Object
Constructor Details
#initialize(exe_path) ⇒ WindowsInstallationHelper
Returns a new instance of WindowsInstallationHelper.
343 344 345 |
# File 'lib/u3d/installation.rb', line 343 def initialize(exe_path) @exe_path = exe_path end |
Instance Method Details
#build_number ⇒ Object
356 357 358 359 360 361 362 363 |
# File 'lib/u3d/installation.rb', line 356 def build_number s = unity_version_info if s a = s.split("_") return a[1] if a.count > 1 end nil end |
#version ⇒ Object
347 348 349 350 351 352 353 354 |
# File 'lib/u3d/installation.rb', line 347 def version s = unity_version_info if s a = s.split("_") return a[0] unless a.empty? end nil end |