Sha256: 13eed2bf4fb73fd5f50d86c3f95dce02ddd3557a36ea035d4d3ede55f25c85bd
Contents?: true
Size: 417 Bytes
Versions: 3
Compression:
Stored size: 417 Bytes
Contents
# frozen_string_literal: true module Grumlin class VertexProperty attr_reader :label, :value def initialize(value) @label = value[:label] @value = Typing.cast(value[:value]) end def inspect "vp[#{label}->#{value}]" end def to_s inspect end def ==(other) self.class == other.class && @label == other.label && @value == other.value end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
grumlin-0.23.0 | lib/grumlin/vertex_property.rb |
grumlin-0.22.5 | lib/grumlin/vertex_property.rb |
grumlin-0.22.4 | lib/grumlin/vertex_property.rb |