Class: Rango::RouterStrategy
Attributes
Instance Attributes
args | [RW] | public | |
---|---|---|---|
block | [RW] | public | |
params | [RW] | public | |
request | [RW] | public |
Constructor Summary
public
initialize(request, params, *args, &block)
[View source]
24 25 26 27 28 29 |
# File 'lib/rango/router/strategies.rb', line 24 def initialize(request, params, *args, &block) @request = request @params = params || Hash.new @args = args || Array.new @block = block end |
Public Visibility
Public Class Method Summary
register |
---|
Public Class Method Details
register
public
register
[View source]
17 18 19 20 21 |
# File 'lib/rango/router/strategies.rb', line 17 def self.register # TODO: different strategies for each router Rango::Router.strategies.push(self) Rango.logger.debug("Strategy #{self} have been registered") end |