module Hack01

The main Hack01 driver

Public Class Methods

hi(language = "english") click to toggle source

from the tutorial guides.rubygems.org/make-your-own-gem/ Example:

>> Hack01.hi("australian")
=> "g'day cobbers"

Arguments:
  language: (String)
# File lib/hack01.rb, line 12
def self.hi language = "english"
  translator = Translator.new language
  translator.hi
end
info() click to toggle source

Example:

>> Hack01.info
=> "Making a first ruby gem"
# File lib/hack01.rb, line 20
def self.info
  p "Making a first ruby gem"
  p "https://guides.rubygems.org/make-your-own-gem/"
end

Public Instance Methods

hello() click to toggle source

Example

>> a = Hack01.new
>> a.hello
=> "hello there"
# File lib/hack01.rb, line 29
def hello
  p "hello there"
end