Consider this example on an iOS App Automation project using Appium: In the line of code below, we have a type AttachmentType: AddAttachmentiOS(AttachmentType attachmentType, PhotoType type) { Working with Ruby and JavaScript, in this case, to know exactly what data to pass, I need to jog back to different methods.