Class: Distortioner::Say
- Inherits:
-
Object
- Object
- Distortioner::Say
- 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 |
#version ⇒ Object
3 4 5 |
# File 'lib/distortioner/say.rb', line 3 def version $stdout.puts Distortioner::VERSION end |