lib/u3d/unity_version_number.rb in u3d-1.1.3 vs lib/u3d/unity_version_number.rb in u3d-1.1.4
- old
+ new
@@ -22,13 +22,15 @@
require 'u3d/utils'
module U3d
class UnityVersionNumber
+ attr_reader :unity_version
attr_reader :parts
def initialize(version)
- parsed = Utils.parse_unity_version(version)
+ @unity_version = version
+ parsed = Utils.parse_unity_version(@unity_version)
parsed.each_with_index do |val, index|
next if val.nil? || (index == 3)
parsed[index] = val.to_i
end
@parts = parsed