Sha256: 05f297fbeb014cfeca1aaa2410e70a6eb2cada3405bc0b2be7945224096d446f
Contents?: true
Size: 338 Bytes
Versions: 5
Compression:
Stored size: 338 Bytes
Contents
# frozen_string_literal: true class Grumlin::Vertex attr_reader :label, :id def initialize(label:, id:) @label = label @id = Grumlin::Typing.cast(id) end def ==(other) self.class == other.class && @label == other.label && @id == other.id end def inspect "v[#{@id}]" end def to_s inspect end end
Version data entries
5 entries across 5 versions & 1 rubygems