Class: Integer
Overview
Add version utility
Instance Method Summary collapse
Instance Method Details
#to_str_version
16 17 18 |
# File 'scripts/00002 state.rb', line 16 def to_str_version return [self].pack('I>').unpack('C*').join('.').gsub(/^(0\.)+/, '') end |