lib/hola_galfus.rb in hola_galfus-0.0.6 vs lib/hola_galfus.rb in hola_galfus-0.0.7

- old
+ new

@@ -1,5 +1,7 @@ +require 'colorized_string' + class Hola # Say hi to the world! # # Example: # >> Hola.hi("spanish") @@ -9,9 +11,19 @@ # @return [String] def self.hi(language = "english") translator = Translator.new(language) translator.hi end + + # Lo mismo que hi pero en color rojo. + # + # @param [String] language Translation language + # @return [String] + def self.red_hi(language = "english") + translator = Translator.new(language) + ColorizedString[translator.hi].colorize(:red) + end + end require_relative 'hola/translator'