Please use our GitHub Issues page for all new support inquiries. If you need to contact us directly, please e-mail [email protected]

I'm new to Ruby and recently wrote a script to export data that ended up being over 1000 lines of code. The reason that it was so long was because I had to repeat the same code multiple times for different behaviors. I was thinking that I could create a loop so that the code doesn't need to be repeated, but I am concerned that I will get errors when using create_mutually_exclusive to look at the different ordinals such as in

if cell.obj_beforeafter_mutex_before_object_label_ordinal != "" && cell.obj_beforeafter_mutex_after_object_label_ordinal == ""

because I have gotten error messages from looping with this before.

Does anyone have experience with creating shorter scripts or is anyone willing to look over the script I created to see how it can improve?

asked 14 Jul '17, 19:04

aherbolz's gravatar image

accept rate: 0%


I can take a look at your existing script. Can you e-mail it to [email protected]?

We also have several example export scripts available on GitHub: You can tweak the columns that get exported in the parameters section and if you are familiar with Ruby you can modify the contents of the body section.

permanent link

answered 17 Jul '17, 14:10

Shohan%20Hasan's gravatar image

Shohan Hasan ♦♦
accept rate: 14%


I tried sending an email to that address and it bounced back. Is there a different address I can send to?


permanent link

answered 17 Jul '17, 17:18

aherbolz's gravatar image

accept rate: 0%

Don't worry, we received it. We are working to resolve the mail delivery issue.

(17 Jul '17, 17:20) Shohan Hasan ♦♦ Shohan%20Hasan's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 14 Jul '17, 19:04

question was seen: 3,209 times

last updated: 17 Jul '17, 17:20

powered by OSQA