Class: Rad::Router::Configurator

Inherits:
Object
  • Object
show all
Defined in:
lib/rad/router/_configurator.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(router) ⇒ Configurator

Returns a new instance of Configurator.



4
5
6
# File 'lib/rad/router/_configurator.rb', line 4

def initialize router
  @router = router
end

Class Method Details

.configure(&block) ⇒ Object



15
16
17
# File 'lib/rad/router/_configurator.rb', line 15

def configure &block
  block.call Rad::Router::Configurator.new(router)
end

Instance Method Details

#persistent_params(*args) ⇒ Object



8
9
10
# File 'lib/rad/router/_configurator.rb', line 8

def persistent_params *args
  args.each{|v| router.persistent_params << v}
end