hola_nicholas 0.2.1 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hola_nicholas.rb +9 -0
- metadata +1 -1
data/lib/hola_nicholas.rb
CHANGED
@@ -3,6 +3,15 @@
|
|
3
3
|
require File.expand_path("../hola_nicholas/translator",__FILE__)
|
4
4
|
|
5
5
|
class HolaNicholas
|
6
|
+
# Say hi Nicholas to the world!
|
7
|
+
#
|
8
|
+
# Example:
|
9
|
+
# >> Hola.hi("portuguese")
|
10
|
+
# => "E aí Nicholas!"
|
11
|
+
#
|
12
|
+
# Arguments:
|
13
|
+
# language: (String)
|
14
|
+
|
6
15
|
def self.hi(language = "english")
|
7
16
|
translator = Translator.new(language)
|
8
17
|
puts translator.hi
|