Class: Pagy::Calendar::Helper
- Inherits:
-
Hash
- Object
- Hash
- Pagy::Calendar::Helper
- 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
-
#showtime ⇒ Object
Return the current time of the smallest time unit shown.
Instance Method Details
#showtime ⇒ Object
Return the current time of the smallest time unit shown
64 65 66 |
# File 'lib/pagy/calendar/helper.rb', line 64 def showtime self[@units.last].from end |