Tuesday, April 10, 2012

[Rails] Re: what does "use" statement do ?

On Apr 10, 3:47 pm, Jedrin <jrubia...@gmail.com> wrote:
>  I have left my ruby books at home. I am looking at some code that has
> stuff like
>
> use Rack::Flash
>

This (in a rack configuration file) tells rack to add the Rack::Flash
middleware to the middleware stack. Hopefully that gives you something
more explicit to google for

Fred.
> and some other more complex statements similar to that. I am not sure
> what "use" does and it is too common a word to google. Any links or
> explanations would be appreciated ..
>
>  Thanks

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate