跳至内容 跳至搜索
方法
#
N
T
包含模块

属性

[R] full_version_string

类公共方法

new(version_string, full_version_string = nil)

# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 257
def initialize(version_string, full_version_string = nil)
  @version = version_string.split(".").map(&:to_i)
  @full_version_string = full_version_string
end

实例公共方法

<=>(version_string)

# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 262
def <=>(version_string)
  @version <=> version_string.split(".").map(&:to_i)
end

to_s()

# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 266
def to_s
  @version.join(".")
end