Method: Blur.Script
- Defined in:
- library/blur.rb
.Script(name, *args, &block) ⇒ Object
Creates a new superscript class and inserts it into the list of scripts.
35 36 37 38 39 40 41 42 43 |
# File 'library/blur.rb', line 35 def self.Script name, *args, &block klass = Class.new SuperScript klass.name = name klass.events = {} klass.class_exec &block klass.init @@scripts[name] = klass end |