ruby examples for mql