# translater content by language module BoneHola class Translator attr_accessor :language private :language, :language= # init say language def initialize(language) self.language = language end # Say hi to the world through tree languanges def hi case language when "english" "Hello World!" when "spanish" "hola mundo!" else "你好,世界!" end end end end