Challenge for Functions
Challenge
In Ruby on Rails, pages are created with templates which use the yield statement. The code below passed a block to a template function that still needs to be written.
Create a function below called template that prints the word "start", then yields a block passed to it, and then prints the word "end".
( It shouldn't add any newlines.)
Please sign in or sign up to submit answers.
Alternatively, you can try out Learneroo before signing up.