class StructureDigest::SchemaParts::ArrayDereference

Attributes

index[R]

Public Class Methods

new(index) click to toggle source
# File lib/structure_digest/array_dereference.rb, line 5
def initialize(index)
  @index = index
end

Public Instance Methods

==(other) click to toggle source
# File lib/structure_digest/array_dereference.rb, line 9
def ==(other)
  self.class == other.class && @index == other.index
end
Also aliased as: eql?
abstract() click to toggle source
# File lib/structure_digest/array_dereference.rb, line 19
def abstract
  AbstractArrayDereference.new
end
eql?(other)
Alias for: ==
hash() click to toggle source
# File lib/structure_digest/array_dereference.rb, line 18
def hash; [@index].hash; end
serialize() click to toggle source
# File lib/structure_digest/array_dereference.rb, line 13
def serialize
  "[#{@index}]"
end