Methods

Included Modules

  • Comparable

Class Public methods

new(version_string)

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

Instance Public methods

<=>(version_string)

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