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.



784
785
786
# File 'lib/fairy/controller.rb', line 784

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

Class Method Details

.create_proc(controller, source) ⇒ Object



779
780
781
782
# File 'lib/fairy/controller.rb', line 779

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

Instance Method Details

#create_proc(source) ⇒ Object



788
789
790
# File 'lib/fairy/controller.rb', line 788

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