Ruby code samples