class Article
Attributes
id[R]
Public Instance Methods
name()
click to toggle source
# File lib/prototype_legacy_helper/test/test_prototype_helper.rb, line 35 def name @id.nil? ? 'new article' : "article ##{@id}" end
new_record?()
click to toggle source
# File lib/prototype_legacy_helper/test/test_prototype_helper.rb, line 34 def new_record?; @id.nil? end
save()
click to toggle source
# File lib/prototype_legacy_helper/test/test_prototype_helper.rb, line 33 def save; @id = 1; @author_id = 1 end