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.
299 300 301 |
# File 'lib/u3d/installation.rb', line 299 def initialize(exe_path) @exe_path = exe_path end |
Instance Method Details
#build_number ⇒ Object
312 313 314 315 316 317 318 319 |
# File 'lib/u3d/installation.rb', line 312 def build_number s = unity_version_info if s a = s.split("_") return a[1] if a.count > 1 end nil end |
#version ⇒ Object
303 304 305 306 307 308 309 310 |
# File 'lib/u3d/installation.rb', line 303 def version s = unity_version_info if s a = s.split("_") return a[0] unless a.empty? end nil end |