class Jass::Plugin
Attributes
arguments[R]
name[R]
root[R]
Public Class Methods
new(name, arguments = nil, root = nil)
click to toggle source
# File lib/jass/plugin.rb, line 5 def initialize(name, arguments = nil, root = nil) @name, @arguments, @root = name, arguments, root end
Public Instance Methods
to_js()
click to toggle source
# File lib/jass/plugin.rb, line 9 def to_js args = arguments.respond_to?(:call) ? arguments.call : arguments "__plugins__.push(#{name}(#{args}));\n" end