KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I know that self is the instance inside of an instance method. So, then, is self the class inside of a class method? E.g., Will the following work in Rails? class Post < ActiveRecord::Base def self.cool_post self.find_by_name("cool") end end
Tags (comma-separated)
Save Edits
Cancel