class DYI::Script::ScriptReference
Class representing a referenct of external client-script-file. The scripting becomes effective only when it is output by SVG format.
Attributes
href[R]
@return [String] a path of external script file
Public Class Methods
new(href, content_type = 'application/ecmascript')
click to toggle source
Calls superclass method
DYI::Script::SimpleScript::new
# File lib/dyi/script/simple_script.rb, line 86 def initialize(href, content_type = 'application/ecmascript') super(nil, content_type) @href = href end
Public Instance Methods
has_uri_reference?()
click to toggle source
Returns whether this script contains reference of external script file. @return [Boolean] always returns true
# File lib/dyi/script/simple_script.rb, line 99 def has_uri_reference? true end
include_external_file?()
click to toggle source
Returns whether this script contains reference of external script file. @return [Boolean] always returns true
# File lib/dyi/script/simple_script.rb, line 93 def include_external_file? true end