Class: Playbook::PbDate::Date

Inherits:
Object
  • Object
show all
Includes:
ActionView::Context, ActionView::Helpers::TagHelper, Playbook::Props
Defined in:
app/pb_kits/playbook/pb_date/date.rb

Instance Method Summary collapse

Methods included from Playbook::Props

#generate_classname, #initialize, #prop

Instance Method Details

#classnameObject



17
18
19
# File 'app/pb_kits/playbook/pb_date/date.rb', line 17

def classname
  generate_classname("pb_date_kit")
end

#lg_dateObject



25
26
27
# File 'app/pb_kits/playbook/pb_date/date.rb', line 25

def lg_date
  "#{pb_date_time.to_month.upcase} #{pb_date_time.to_day}"
end

#sm_dateObject



29
30
31
# File 'app/pb_kits/playbook/pb_date/date.rb', line 29

def sm_date
  "#{pb_date_time.to_day_of_week.upcase} · #{pb_date_time.to_month.upcase} #{pb_date_time.to_day}".html_safe
end

#xs_dateObject



21
22
23
# File 'app/pb_kits/playbook/pb_date/date.rb', line 21

def xs_date
  "#{pb_date_time.to_day_of_week.upcase} · #{pb_date_time.to_month.upcase} #{pb_date_time.to_day}".html_safe
end