Sha256: c3966675c385579d2609db4ab4c622ae6b0e3736ff36fe5aad03cf42d0c1859d

Contents?: true

Size: 602 Bytes

Versions: 1

Compression:

Stored size: 602 Bytes

Contents

require 'colorized_string'

class Hola
  # Say hi to the world!
  #
  # Example:
  #   >> Hola.hi("spanish")
  #   => hola mundo
  #
  # @param [String] language Translation language
  # @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'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hola_galfus-0.0.7 lib/hola_galfus.rb