UML sequence diagram - how to represent method arguments that instantiate objects
问题 I'm not sure how to represent something like the following in a sequence diagram (in Ruby): class FirstClass def process thing = SecondClass.new('string argument', third_class, 2) end def third_class ThirdClass.new('another string argument',) end end The first message in the sequence is a call to an instance of FirstClass, and the part that's tripping me up is how to represent the ThirdClass.new being passed as an argument to the SecondClass initializer. 回答1: Basically you just show how and