Class: Distortioner::Say

Inherits:
Object
  • Object
show all
Defined in:
lib/distortioner/say.rb

Instance Method Summary collapse

Instance Method Details

#hi(to: :mr_sourcerer) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/distortioner/say.rb', line 7

def hi(to: :mr_sourcerer)
  if to == :mr_sourcerer
    $stdout.puts "I am politely saying hi on behalf of Ricardo Valeriano!"
    $stdout.puts "  He sure hope you are having fun reading his book. 🙌"
    return
  end

  $stdout.puts "Hi, #{to}!"
end

#versionObject



3
4
5
# File 'lib/distortioner/say.rb', line 3

def version
  $stdout.puts Distortioner::VERSION
end