Class: LMHD::Test::Hello
- Inherits:
-
Object
- Object
- LMHD::Test::Hello
- Defined in:
- lib/lmhd/test/hello.rb
Overview
Hello World
Class Method Summary collapse
-
.hi(language = nil) ⇒ Object
Say hi!.
Instance Method Summary collapse
- #hi ⇒ Object
-
#initialize(lang = nil) ⇒ Hello
constructor
A new instance of Hello.
Constructor Details
#initialize(lang = nil) ⇒ Hello
Returns a new instance of Hello.
7 8 9 |
# File 'lib/lmhd/test/hello.rb', line 7 def initialize(lang=nil) @language = lang end |
Class Method Details
Instance Method Details
#hi ⇒ Object
24 25 26 27 28 29 30 31 32 33 |
# File 'lib/lmhd/test/hello.rb', line 24 def hi case @language when "dood" "'sup doods" when "groot" "I AM GROOT" else "Hello World" end end |