class StructureDigest::SchemaParts::HashDereference

Attributes

key[R]

Public Class Methods

new(key) click to toggle source
# File lib/structure_digest/hash_dereference.rb, line 4
def initialize(key)
  @key = key
end

Public Instance Methods

==(other) click to toggle source
# File lib/structure_digest/hash_dereference.rb, line 16
def ==(other)
  self.class == other.class && @key == other.key
end
Also aliased as: eql?
abstract() click to toggle source
# File lib/structure_digest/hash_dereference.rb, line 12
def abstract
  self
end
eql?(other)
Alias for: ==
hash() click to toggle source
# File lib/structure_digest/hash_dereference.rb, line 20
def hash; [@key].hash; end
serialize() click to toggle source
# File lib/structure_digest/hash_dereference.rb, line 8
def serialize
  ".#{key}"
end