Class: Playbook::PbLabelValue::LabelValue

Inherits:
Object
  • Object
show all
Includes:
Playbook::Props
Defined in:
app/pb_kits/playbook/pb_label_value/label_value.rb

Instance Method Summary collapse

Methods included from Playbook::Props

#dark_props, #generate_classname, #generate_classname_without_spacing, #initialize, #prop, #spacing_options, #spacing_props, #spacing_values

Instance Method Details

#classnameObject



22
23
24
# File 'app/pb_kits/playbook/pb_label_value/label_value.rb', line 22

def classname
  generate_classname("pb_label_value_kit", variant_class)
end

#date_elementObject



26
27
28
# File 'app/pb_kits/playbook/pb_label_value/label_value.rb', line 26

def date_element
  "· #{date.strftime('%m/%d')}".html_safe
end