class Synapse::Serialization::SerializedType

Attributes

name[R]

@return [String]

revision[R]

@return [String]

Public Class Methods

new(name, revision = nil) click to toggle source

@param [String] name @param [String] revision @return [undefined]

# File lib/synapse/serialization/serialized_type.rb, line 13
def initialize(name, revision = nil)
  @name = name
  @revision = revision
end

Public Instance Methods

==(other) click to toggle source
# File lib/synapse/serialization/serialized_type.rb, line 18
def ==(other)
  self.class === other &&
    other.name == @name &&
    other.revision == @revision
end
Also aliased as: eql?
eql?(other)
Alias for: ==
hash() click to toggle source
# File lib/synapse/serialization/serialized_type.rb, line 26
def hash
  @name.hash ^ @revision.hash
end