Class: Itsi::Server::Config::Controller
- Inherits:
-
Middleware
- Object
- Middleware
- Itsi::Server::Config::Controller
- Defined in:
- lib/itsi/server/config/middleware/endpoint/controller.rb
Instance Method Summary collapse
- #build! ⇒ Object
-
#initialize(location, controller = nil) ⇒ Controller
constructor
A new instance of Controller.
Methods included from ConfigHelpers
included, load_and_register, #normalize_keys!
Constructor Details
#initialize(location, controller = nil) ⇒ Controller
Returns a new instance of Controller.
16 17 18 19 20 21 22 |
# File 'lib/itsi/server/config/middleware/endpoint/controller.rb', line 16 def initialize(location, controller=nil) super if controller location.instance_eval{ @controller = controller} end end |
Instance Method Details
#build! ⇒ Object
24 25 26 27 28 |
# File 'lib/itsi/server/config/middleware/endpoint/controller.rb', line 24 def build! if !@params location.instance_eval{ @controller } end end |