Ruby Timeout Functions

EditRocket provides the following information on Timeout functions in the Ruby source code builder.

timeout(sec, exception=Error) - Executes the method's block. If the block execution terminates before sec seconds has passed, it returns true. If not, it terminates the execution and raises exception (which defaults to Timeout::Error).