Created
December 22, 2014 07:15
-
-
Save cyberkov/a83e4f1dc318bf66e5a8 to your computer and use it in GitHub Desktop.
Dinge die man aus Langeweile tut
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
2.times { print "Advent, " } | |
puts "ein Lichtlein brennt." | |
a = { 1 => "eins", 2 => "zwei", 3 => "drei", 4 => "vier", 5 => "steht das Christkind vor der Tür" } | |
(1..5).each {|x| puts (x != 1 ? "dann ": "Erst ") + a[x] + (x != 5 ? ", " : ".")} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment