Class: Fairy::Controller::Context
- Inherits:
-
Object
- Object
- Fairy::Controller::Context
- Defined in:
- lib/fairy/controller.rb
Class Method Summary collapse
Instance Method Summary collapse
- #create_proc(source) ⇒ Object
-
#initialize(controller) ⇒ Context
constructor
A new instance of Context.
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 |