Method: Confection::Controller#exec
- Defined in:
- lib/confection/controller.rb
#exec(*args) ⇒ Object
Evaluate configuration in the context of the caller.
This is the same as calling:
instance_exec(*args, &config)
71 72 73 74 75 76 77 78 79 80 |
# File 'lib/confection/controller.rb', line 71 def exec(*args) result = nil each do |config| if config.respond_to?(:to_proc) #@scope.extend(config.dsl) # ? result = @scope.instance_exec(*args, &config) end end result end |