Class: HelloWorld

Inherits:
Object
  • Object
show all
Defined in:
lib/helloworld_peng.rb

Defined Under Namespace

Classes: Translator

Class Method Summary collapse

Class Method Details

.hi(language = "english") ⇒ Object

Say hi to the world!

Example:
    >> HelloWorld.hi("spanish")
    => hola mundo

  Argument:
    language: (String)


14
15
16
17
# File 'lib/helloworld_peng.rb', line 14

def self.hi(language = "english")
  translator = Translator.new(language)
  translator.hi
end