Class: RSVGR::Script

Inherits:
CanIHazChildren show all
Defined in:
lib/rsvgr.rb

Instance Method Summary collapse

Methods inherited from CanIHazChildren

#<<, #initialize, #save_as, #to_s_children

Methods inherited from Node

#initialize

Constructor Details

This class inherits a constructor from RSVGR::CanIHazChildren

Instance Method Details

#to_sObject



128
129
130
131
132
133
# File 'lib/rsvgr.rb', line 128

def to_s
    "<script"                       \
    " type=\"text/ecmascript\""     \
    "#{" id=\"#{@id}\"" if @id}"    \
    "><![CDATA[\n" + to_s_children + "]]></script>\n"
end