Created
June 6, 2017 20:31
-
-
Save likeuwill/d9e7970b413f4c7a6a48377dc6a40f05 to your computer and use it in GitHub Desktop.
yield
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Gladiator | |
def say_hello | |
puts "Поклон тебе, Цезарь!" | |
yield if block_given? | |
puts "Идущие на смерть приветствуют тебя!" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment