class SyntaxTree::Mermaid::Link

def initialize(from, to, label, type, color)

def initialize(from, to, label, type, color)
  raise unless TYPES.include?(type)
  raise if color && !COLORS.include?(color)
  @from = from
  @to = to
  @label = label
  @type = type
  @color = color
end