Contributed by Wes Morgan
Sending household appliances twirling through the 4th dimension since twenty aught five
def do_something(first_arg, second_arg)
puts "First: #{first_arg}"
puts "Second: #{second_arg}"
enddo_something(:second_arg => 'blah', :first_arg => 'yeah') => First: yeah Second: blah
do_something('yeah', 'blah') =>
First: yeah
Second: blahdef do_something(params)
puts "First: #{params[:first_arg]}"
puts "Second: #{params[:second_arg]}"
end
Comments 0 Comments