Handling pre request script in postman with ruby

How to pass pre request script while making HTTP request in ruby ?
please help me