Class: LMHD::Hello

Inherits:
Object
  • Object
show all
Defined in:
lib/lmhd/hello.rb

Overview

Hello World

Instance Method Summary collapse

Constructor Details

#initialize(lang = nil) ⇒ Hello

Returns a new instance of Hello.



4
5
6
# File 'lib/lmhd/hello.rb', line 4

def initialize(lang=nil)
	@language = lang
end

Instance Method Details

#hiObject



8
9
10
11
12
13
14
15
16
17
# File 'lib/lmhd/hello.rb', line 8

def hi
	case @language
	when "dood"
		"'sup doods"
	when "groot"
		"I AM GROOT"
	else
		"Hello World"
	end
end