Is it valid Ruby code?