Method: Document#year

Defined in:
app/models/document.rb

#yearObject



180
181
182
# File 'app/models/document.rb', line 180

def year
  published_at.strftime('%Y')
end