Class: Wee::Brush::JavascriptTag

Inherits:
GenericTagBrush show all
Defined in:
lib/wee/html_brushes.rb

Constant Summary collapse

HTML_TAG =
'script'.freeze
HTML_TYPE =
'text/javascript'.freeze

Instance Attribute Summary

Attributes inherited from Wee::Brush

#canvas, #document

Instance Method Summary collapse

Methods inherited from GenericTagBrush

#get_oid, html_attr, #oid, #onclick_callback, #onclick_javascript, #onclick_update_callback, #onclick_update_self_callback, #ondblclick_callback, #with

Methods inherited from Wee::Brush

#close, nesting?, #setup, #with

Constructor Details

#initializeJavascriptTag

Returns a new instance of JavascriptTag.



182
183
184
185
# File 'lib/wee/html_brushes.rb', line 182

def initialize
  super(HTML_TAG)
  type(HTML_TYPE)
end