class Playbook::PbWeekdayStacked::WeekdayStacked
def classname
def classname generate_classname("pb_weekday_stacked_kit", align) end
def day
def day day = Playbook::PbKit::PbDateTime.new(date) content_tag(:time, datetime: day.to_iso) do day.to_unpadded_day end end
def day_of_week
def day_of_week day = Playbook::PbKit::PbDateTime.new(date) formatted_day = compact ? day.to_day_of_week_compact : day.to_day_of_week content_tag(:time, datetime: day.to_iso) do formatted_day end end
def formatted_month_and_day
def formatted_month_and_day case variant when "day_only" then day when "expanded" then month_and_day(format: "%b %-d") else month_and_day end end
def month_and_day(format: "%-m/%-d")
def month_and_day(format: "%-m/%-d") month_and_day = Playbook::PbKit::PbDateTime.new(date) content_tag(:time, datetime: month_and_day.to_iso) do date.strftime(format) end end