Class: Integer

Inherits:
Object show all
Defined in:
scripts/00002 state.rb

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