123456789_123456789_123456789_123456789_123456789_

Class: ActiveRecord::ConnectionAdapters::AbstractAdapter::Version

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Instance Chain:
self, Comparable
Inherits: Object
Defined in: activerecord/lib/active_record/connection_adapters/abstract_adapter.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(version_string) ⇒ Version

[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/abstract_adapter.rb', line 117

def initialize(version_string)
  @version = version_string.split('.').map(&:to_i)
end

Instance Method Details

#<=>(version_string)

[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/abstract_adapter.rb', line 121

def <=>(version_string)
  @version <=> version_string.split('.').map(&:to_i)
end