static public Method

Router.prepare(first = [], last = []) { |Behavior.new({}, { :action => 'index' })| ... }

There's no documentation for this item.

Source Code

# File merb/router.rb, line 21
def prepare(first = [], last = [], &block)
  @@routes = []
  yield Behavior.new({}, { :action => 'index' }) # defaults
  @@routes = first + @@routes + last
  compile
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.