Sha256: 258386f937591625c8837fa28cfff58aa3897218e84993e644818e0ca776c52b

Contents?: true

Size: 333 Bytes

Versions: 5

Compression:

Stored size: 333 Bytes

Contents

# The main Hola driver
class Hola
  # Say hi to the world!
  #
  # Example:
  #   >> Hola.hi("spanish")
  #   => hola mundo
  #
  # Arguments:
  #   language: (String)

  def self.hi(language = "english")
    translator = Translator.new(language)
    hi = translator.hi
    puts hi
    return hi
  end
end

require 'hola/translator'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hola-example-0.0.5 lib/hola.rb
hola-example-0.0.4 lib/hola.rb
hola-example-0.0.3 lib/hola.rb
hola-example-0.0.2 lib/hola.rb
hola-example-0.0.1 lib/hola.rb