declare function ruby code example Example: functions in ruby # functions in ruby def foo() # function body end