Skip to Content Skip to Search

class ActiveRecord::ConnectionAdapters::AbstractAdapter::Version

Inherits From

Attributes

[R] full_version_string

Public class methods

Source code GitHub
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 251
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 256
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 260
def to_s
  @version.join(".")
end

Definition files