class Author
Attributes
id[R]
Public Instance Methods
name()
click to toggle source
# File lib/prototype_legacy_helper/test/test_prototype_helper.rb, line 23 def name @id.nil? ? 'new author' : "author ##{@id}" end
new_record?()
click to toggle source
# File lib/prototype_legacy_helper/test/test_prototype_helper.rb, line 22 def new_record?; @id.nil? end
save()
click to toggle source
# File lib/prototype_legacy_helper/test/test_prototype_helper.rb, line 21 def save; @id = 1 end