Method: HtmlGrid::AbstractSelect#to_html

Defined in:
lib/htmlgrid/select.rb

#to_html(context) ⇒ Object



33
34
35
36
37
38
# File 'lib/htmlgrid/select.rb', line 33

def to_html(context)
	context.select(@attributes) {
		sel = selection(context)
		sel.is_a?(Array) ? sel.join : sel.to_s
	}
end