Class: Derketo::Events::Return

Inherits:
Derketo::Event show all
Defined in:
lib/derketo/events/return.rb

Instance Attribute Summary

Attributes inherited from Derketo::Event

#class_name, #method_id, #next, #parameters, #previous, #return_value, #type

Instance Method Summary collapse

Methods inherited from Derketo::Event

#initialize, #to_h, #to_json, #to_s

Methods included from Helpers

#clean, write

Constructor Details

This class inherits a constructor from Derketo::Event

Instance Method Details

#to_mermaidObject



5
6
7
8
9
10
11
# File 'lib/derketo/events/return.rb', line 5

def to_mermaid
  if return_value.nil?
    "\t#{previous.class_name}-->>#{class_name}: return\n"
  else
    "\t#{previous.class_name}-->>#{class_name}: #{return_value}\n"
  end
end