Module: Artworker::Artwork::InstanceMethods

Defined in:
lib/artworker/artwork.rb

Instance Method Summary collapse

Instance Method Details

#italic_title_with_dateObject



39
40
41
42
43
44
45
# File 'lib/artworker/artwork.rb', line 39

def italic_title_with_date
  if !self.title.blank?
    !self.date.blank? ? "<em>#{self.title}</em>, #{self.date}" : "<em>#{self.title}</em>"
  elsif !self.date.blank?
    "#{self.date}"
  end
end

#title_with_dateObject



31
32
33
34
35
36
37
# File 'lib/artworker/artwork.rb', line 31

def title_with_date
  if !self.title.blank?
    !self.date.blank? ? "#{self.title}, #{self.date}" : "#{self.title}"
  elsif !self.date.blank?
    "#{self.date}"
  end
end