Method: Net::SCP::Version#to_i

Defined in:
lib/net/scp/version.rb

#to_iObject

Converts this version to a canonical integer that may be compared against other version objects.



44
45
46
# File 'lib/net/scp/version.rb', line 44

def to_i
  @to_i ||= @major * 1_000_000 + @minor * 1_000 + @tiny
end