public Method

Route.generation_extraction

Build several lines of code that extract values from the options hash. If any of the values are missing or rejected then a return will be executed.

Source Code

# File action_controller/routing/route.rb, line 54
def generation_extraction
  segments.collect do |segment|
    segment.extraction_code
  end.compact * "\n"
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.