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
- .new(version_string) ⇒ Version constructor
Instance Method Summary
Constructor Details
.new(version_string) ⇒ Version
# 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