From: Abder-Rahman Ali on
I have this script from "Why's poignant guide to Ruby":
http://pastie.org/1043938

And, have the following questions:

1- def join( sep = $,, format = "%s" )

What is:

$,
"%s"
?

2- How can I call a method on "end"? What is the purpose of doing it
like that?

end.join( sep )


3- What is meant by this statement?

rooms.join(", ", "%d bed" )

Thanks.
--
Posted via http://www.ruby-forum.com/.

From: Abder-Rahman Ali on
Thanks a lot.
--
Posted via http://www.ruby-forum.com/.