class ActiveRecord::ConnectionAdapters::AbstractAdapter::Version
Inherits From
-
module
Comparable
Attributes
[R] | full_version_string |
Public class methods
Source code GitHub
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 262
def initialize(version_string, full_version_string = nil)
@version = version_string.split(".").map(&:to_i)
@full_version_string = full_version_string
end
Public instance methods
Source code GitHub
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 267
def <=>(version_string)
@version <=> version_string.split(".").map(&:to_i)
end
Source code GitHub
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 271
def to_s
@version.join(".")
end