I agree with José. Is there a tl;dr for this thread?
On 09/02/2013, at 6:35, José Valim <[email protected]> wrote: > I don't know what the fuss is about and what needs to be documented. > > Most Ruby gems (and even libs inside Ruby) require you to load the > *top-level* file in order to use it properly. > You can't go around picking whatever you want and expect it to work. Examples: > > 1. Rake does common requires: > > https://github.com/jimweirich/rake/blob/master/lib/rake.rb > > For example, this file assumes Task is loaded: > > https://github.com/jimweirich/rake/blob/master/lib/rake/multi_task.rb > > 2. Rack sets up autoloads: > > https://github.com/rack/rack/blob/master/lib/rack.rb > > 3. Webrick does the same as Rake: > > https://github.com/ruby/ruby/blob/trunk/lib/webrick.rb > > So saying Rails is "stupid" regarding this requirement shows rather a lack of > understanding how most Ruby libraries work. > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/rubyonrails-core?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/rubyonrails-core?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
