Class: Pagy::Calendar::Helper

Inherits:
Hash
  • Object
show all
Defined in:
lib/pagy/calendar/helper.rb

Overview

Initializes the calendar objects, reducing complexity in the extra The returned calendar is a simple hash of units/objects

Instance Method Summary collapse

Instance Method Details

#showtimeObject

Return the current time of the smallest time unit shown



60
61
62
# File 'lib/pagy/calendar/helper.rb', line 60

def showtime
  self[@units.last].from
end