Methods

Included Modules

  • Comparable

Attributes

[R] full_version_string

Class Public methods

new(version_string, full_version_string = nil)

📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 170
        def initialize(version_string, full_version_string = nil)
          @version = version_string.split(".").map(&:to_i)
          @full_version_string = full_version_string
        end
🔎 See on GitHub

Instance Public methods

<=>(version_string)

📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 175
        def <=>(version_string)
          @version <=> version_string.split(".").map(&:to_i)
        end
🔎 See on GitHub

to_s()

📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 179
        def to_s
          @version.join(".")
        end
🔎 See on GitHub