class U3d::UnityVersionNumber
Attributes
parts[R]
unity_version[R]
Public Class Methods
new(version)
click to toggle source
# File lib/u3d/unity_version_number.rb, line 30 def initialize(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 end
Public Instance Methods
to_s()
click to toggle source
# File lib/u3d/unity_version_number.rb, line 40 def to_s "#{parts[0]}.#{parts[1]}.#{parts[2]}#{parts[3]}#{parts[4]}" end