Mega Code Archive
Categories
/
Ruby
/
Method
Define hello so that it contains only a yield statement
then call the new version of hello with a block (the code in braces). def hello yield end hello { puts "Hello, Matz!" } # => Hello, Matz!