Class: HolaMundo
- Inherits:
-
Object
- Object
- HolaMundo
- Defined in:
- lib/hola_mundo.rb
Overview
The main Hola Mundo driver
Defined Under Namespace
Classes: Translator
Class Method Summary collapse
-
.hi(language = :spanish) ⇒ Object
Say hi to the world!.
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 |