Class: Formatic::Date::Day
- Inherits:
-
Object
- Object
- Formatic::Date::Day
- Extended by:
- Dry::Initializer
- Defined in:
- app/components/formatic/date.rb
Overview
Represents one element in the calendar.
Instance Method Summary collapse
Instance Method Details
#classes ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'app/components/formatic/date.rb', line 16 def classes [ ('is-today' if date.today?), ('is-saturday' if date.saturday?), ('is-sunday' if date.sunday?), ('is-holiday' if holiday?) ].join(' ') end |