Class: HelloWorld
- Inherits:
-
Object
- Object
- HelloWorld
- Defined in:
- lib/helloworld_peng.rb
Defined Under Namespace
Classes: Translator
Class Method Summary collapse
-
.hi(language = "english") ⇒ Object
Say hi to the world! Example: >> HelloWorld.hi(“spanish”) => hola mundo Argument: language: (String).
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 |