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