Class: Generator

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/generator.rb

Class Method Summary collapse

Class Method Details

.load(what) ⇒ Object



5
6
7
8
9
# File 'lib/generator.rb', line 5

def self.load(what)
  self.actors ||= []
  self.actors << self.act_on if self.act_on
  self.act_on = what
end

.method_missing(sym, *args) ⇒ Object



15
16
17
# File 'lib/generator.rb', line 15

def self.method_missing(sym, *args)
  act_on.send(sym, *args)
end

.unloadObject



11
12
13
# File 'lib/generator.rb', line 11

def self.unload
  self.act_on = self.actors.shift
end