Class: Playbook::PbDate::Date
- Inherits:
-
Object
- Object
- Playbook::PbDate::Date
show all
- Includes:
- ActionView::Context, ActionView::Helpers::TagHelper, Playbook::Props
- Defined in:
- app/pb_kits/playbook/pb_date/date.rb
Instance Method Summary
collapse
#generate_classname, #initialize, #prop
Instance Method Details
#classname ⇒ Object
17
18
19
|
# File 'app/pb_kits/playbook/pb_date/date.rb', line 17
def classname
generate_classname("pb_date_kit")
end
|
#lg_date ⇒ Object
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_date ⇒ Object
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_date ⇒ Object
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
|