Class: HolaMundo

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

Overview

The main Hola Mundo driver

Defined Under Namespace

Classes: Translator

Class Method Summary collapse

Class Method Details

.hi(language = :spanish) ⇒ Object

Say hi to the world!

Example:

>> HolaMundo.hi("english")
=> Hello world!

Arguments:

language: (String)


12
13
14
15
# File 'lib/hola_mundo.rb', line 12

def self.hi(language = :spanish)
  translator = Translator.new(language)
  translator.hi
end