When a method is called on the class itself, as in the case of new, it’s known as a class method.
- Chapter 4. Rails-Flavored Ruby
- from Ruby on Rails Tutorial: Learn Web Development with Rails, Third Edition
- Publisher: Addison-Wesley Professional
- Released: April 2015
Share this highlighthttp://www.safaribooksonline.com/a/ruby-on-rails/910570/