Sha256: 70767375d13195b509c85ba3963e5eeb4f07daf385d4e2acea5a02eb2b145bbe
Contents?: true
Size: 316 Bytes
Versions: 2
Compression:
Stored size: 316 Bytes
Contents
class Translator def initialize(language) @language = language end def hi case @language when "spanish" "hola mundo" when "computer" "01101000011001010110110001101100011011110010000001110111011011110111001001101100 01100100" else "hello world" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hola_seanfred-0.0.6 | lib/hola/translator.rb |
hola_seanfred-0.0.5 | lib/hola/translator.rb |