Method: Artworker::Artist::InstanceMethods#dates
- Defined in:
- lib/artworker/artist.rb
#dates ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/artworker/artist.rb', line 39 def dates if !self.birth.blank? if !self.death.blank? "#{self.birth} - #{self.death}" else "b. #{self.birth}" end elsif !self.death.blank? "d. #{self.death}" end end |