Module: Sarawong

Defined in:
lib/sarawong.rb

Class Method Summary collapse

Class Method Details

.form(input) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/sarawong.rb', line 13

def self.form(input)
	puts 'in form'
	# puts form_authenticity_token
	puts 'in form'
	string = Builder.form(input.to_s, input.column_names)
	string = string.html_safe
	return string
end

.header(title = 'title here') ⇒ Object



8
9
10
11
12
# File 'lib/sarawong.rb', line 8

def self.header(title = 'title here')
	string = Builder.header(title)
	string = string.html_safe
	return string
end

.hi(language = "english") ⇒ Object



5
6
7
# File 'lib/sarawong.rb', line 5

def self.hi(language = "english")
	Translator.hi(language)
end