Sha256: 7acb95749aedc2dba649ecf944c5cde707fafc5d4b2c1b94dd79e49e8c5958d7
Contents?: true
Size: 260 Bytes
Versions: 15
Compression:
Stored size: 260 Bytes
Contents
# encoding: utf-8 class DateTime def display "#{Configuration::DAYS[self.wday]} #{self.day} de #{Configuration::MONTHS[self.month-1]} #{self.year == Date.today.year ? '' : self.year}" end def short_display self.strftime('%-d/%-m/%Y') end end
Version data entries
15 entries across 15 versions & 1 rubygems