Class: Gvg::Hello
- Inherits:
-
Object
- Object
- Gvg::Hello
- Defined in:
- lib/gvg/hello.rb
Overview
A multi-lingual hello class to say hello in multiple languages.
Defined Under Namespace
Classes: Translator
Class Method Summary collapse
-
.hi(language = "english") ⇒ Object
Say hi to the world!.
Class Method Details
.hi(language = "english") ⇒ Object
Say hi to the world!
Example:
>> Hola.hi("spanish")
Arguments:
language: (String)
11 12 13 14 |
# File 'lib/gvg/hello.rb', line 11 def self.hi(language = "english") translator = Translator.new(language) translator.hi end |