are functions in ruby called methods code example Example: functions in ruby # functions in ruby def foo() # function body end