This file contains hidden or 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
################################################################# | |
# A solution to the Ruby Quiz: http://rubyquiz.com/quiz121.html # | |
################################################################# | |
INPUT = "...---..-....-" # Eugenia or Sofia | |
HELLO = "......-...-..---" # Hello | |
OK = "----.-" # Ok or Toa | |
class Morse | |
LETTERS_REPRESENTATION = { |
This file contains hidden or 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
# Kata description: http://codingdojo.org/cgi-bin/index.pl?KataTennis | |
module Tennis | |
class Player | |
attr_reader :name, :points_won | |
def initialize(name) | |
@name = name | |
@points_won = 0 | |
end |