class HtmlGrid::JavaScript
Public Instance Methods
init()
click to toggle source
Calls superclass method
HtmlGrid::Component#init
# File lib/htmlgrid/javascript.rb, line 9 def init super @attributes = { "type" => "text/javascript", "language" => "JavaScript" } end
to_html(context)
click to toggle source
# File lib/htmlgrid/javascript.rb, line 17 def to_html(context) context.script(@attributes) { @value.to_s } end