Back
Close

Positional Arguments

yisraelg3
1,228 views

def func(person, dish, meal) puts "#{person} ate #{dish} for #{meal}." end

func('Bill', 'pasta', 'breakfast')

Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io