Class: Ea::Svg::EaEmitter::Markers::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/ea/svg/ea_emitter/markers.rb

Overview

Entry pairs the rendered SVG body with the structural anchor (rounded integer [x, y] pair). Anchor is retained for future use (e.g. overlap diagnostics) but no longer drives dedup — EA emits one marker per connector.

Instance Method Summary collapse

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


83
84
85
# File 'lib/ea/svg/ea_emitter/markers.rb', line 83

def eql?(other)
  other.is_a?(Entry) && anchor == other.anchor
end

#hashObject



79
80
81
# File 'lib/ea/svg/ea_emitter/markers.rb', line 79

def hash
  anchor.hash
end