--- !ruby/object:RI::MethodDescription 
aliases: 
- !ruby/object:RI::AliasName 
  name: with
- !ruby/object:RI::AliasName 
  name: register
block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Creates a Route from one or more Behavior objects, unless a <tt>block</tt> is passed in.
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Parameters
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "params<Hash>:"
    body: The parameters the route maps to.
  - !ruby/struct:SM::Flow::LI 
    label: "&block:"
    body: "All routes defined in the block will be scoped to the params defined by the #to method."
  type: :NOTE
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Block parameters
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "r<Behavior>:"
    body: <tt>optional</tt> - The to behavior object.
  type: :NOTE
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Returns
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "Route:"
    body: It registers a new route and returns it.
  type: :NOTE
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Examples
- !ruby/struct:SM::Flow::VERB 
  body: "  match('/:controller/:id).to(:action =&gt; 'show')\n\n  to(:controller =&gt; 'simple') do\n    match('/test').to(:action =&gt; 'index')\n    match('/other').to(:action =&gt; 'other')\n  end\n"
- !ruby/struct:SM::Flow::P 
  body: ":api: public"
full_name: Merb::Router::Behavior#to
is_singleton: false
name: to
params: (params = {}, &block)
visibility: public
