Sha256: 6fc16da633f8914e1c66b4091d00c54918fa2dace140334bfc9805a7c84721dd

Contents?: true

Size: 388 Bytes

Versions: 2

Compression:

Stored size: 388 Bytes

Contents

# This class is responsible for exposing methods to be used from
# the gem
class GemTutorial
  # Print 'hello world' depending on the language passed in
  #
  # @param language [String] the language
  # @return [nil] Prints 'hello world'.
  def self.hi(language = 'english')
    translator = Translator.new(language)
    translator.hi
  end
end

require 'gem_tutorial_kcheung/translator'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gem_tutorial_kcheung-0.0.3 lib/gem_tutorial_kcheung.rb
gem_tutorial_kcheung-0.0.2 lib/gem_tutorial_kcheung.rb