Class: Wf::Arc

Inherits:
ApplicationRecord show all
Defined in:
app/models/wf/arc.rb

Instance Method Summary collapse

Instance Method Details

#nameObject



34
35
36
37
38
39
40
# File 'app/models/wf/arc.rb', line 34

def name
  if in?
    [place&.name, transition&.name].join(" -> ")
  else
    [transition&.name, place&.name].join(" -> ")
  end
end