class HolaGary
hola_gary.rb¶ ↑
- Author
-
Gary Márquez
-
garyjscs@gmail.com
- Description
-
Generates a string of 'Hello world' with translation posibilities
Public Class Methods
hi(language = "spanish")
click to toggle source
-
without arguments: returns spanish translation of 'Hello world'
-
with ('english') argument: returns classic 'Hello world' string
NOTES: more languages in future versions will be available
# File lib/hola_gary.rb, line 12 def self.hi(language = "spanish") translator = Translator.new(language) translator.hi end