add blanks between methods

This commit is contained in:
Vijay Dev
2011-09-05 13:41:25 +05:30
parent 499ad11700
commit 24ee573d6c

View File

@@ -5,14 +5,17 @@ class Post
extend ActiveModel::Naming
include ActiveModel::Conversion
attr_writer :id, :body
def initialize
@id = nil
@body = nil
super
end
def id
@id || 45
end
def body
super || @body || "What a wonderful world!"
end