class Playbook::PbDateStacked::DateStacked
def bold_class
def bold_class bold ? "bold" : nil end
def classname
def classname generate_classname("pb_date_stacked_kit", align, size, bold, reverse_class, dark_class) end
def dark_class
def dark_class dark ? "dark" : nil end
def day
def day day = Playbook::PbKit::PbDateTime.new(date) content_tag(:time, datetime: day.to_iso) do day.to_day.to_s end end
def month
def month pb_date_time.to_month.capitalize end
def pb_date_time
def pb_date_time Playbook::PbKit::PbDateTime.new(date) end
def reverse_class
def reverse_class reverse ? "reverse" : nil end
def title_size
def title_size size == "md" ? 3 : 4 end
def year
def year current_year = DateTime.now.year.to_i year = Playbook::PbKit::PbDateTime.new(date).to_year.to_i if current_year != year content_tag(:time, datetime: year) do year.to_s end end end