Class: Fairy::Controller::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/fairy/controller.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(controller) ⇒ Context

Returns a new instance of Context.



763
764
765
# File 'lib/fairy/controller.rb', line 763

def initialize(controller)
	@Pool = controller.pool_dict
end

Class Method Details

.create_proc(controller, source) ⇒ Object



758
759
760
761
# File 'lib/fairy/controller.rb', line 758

def self.create_proc(controller, source)
	context = new(controller)
	context.create_proc(source)
end

Instance Method Details

#create_proc(source) ⇒ Object



767
768
769
# File 'lib/fairy/controller.rb', line 767

def create_proc(source)
	eval("proc{#{source}}", binding)
end