Sha256: fb75eadf27e28749b55f7151bd8b8a3009089a50e0f8cc2f7b296d4a8b4b0c43
Contents?: true
Size: 677 Bytes
Versions: 36
Compression:
Stored size: 677 Bytes
Contents
# frozen_string_literal: true module ActiveRecord module ConnectionAdapters module MySQL class TypeMetadata < DelegateClass(SqlTypeMetadata) # :nodoc: undef to_yaml if method_defined?(:to_yaml) attr_reader :extra def initialize(type_metadata, extra: "") super(type_metadata) @extra = extra end def ==(other) other.is_a?(TypeMetadata) && __getobj__ == other.__getobj__ && extra == other.extra end alias eql? == def hash TypeMetadata.hash ^ __getobj__.hash ^ extra.hash end end end end end
Version data entries
36 entries across 36 versions & 4 rubygems