Class: Playbook::PbBody::Body
- Defined in:
- app/pb_kits/playbook/pb_body/body.rb
Instance Method Summary collapse
Methods inherited from KitBase
Methods included from ZIndex
Methods included from Spacing
included, #max_width_options, #max_width_props, #max_width_values, #spacing_options, #spacing_props, #spacing_values
Methods included from Classnames
#generate_classname, #generate_classname_without_spacing, included
Methods included from Playbook::Props
Methods included from Playbook::PbKitHelper
Methods included from Playbook::PbFormsHelper
Instance Method Details
#classname ⇒ Object
21 22 23 |
# File 'app/pb_kits/playbook/pb_body/body.rb', line 21 def classname generate_classname("pb_body_kit", color_class, status_class) end |
#content ⇒ Object
25 26 27 28 |
# File 'app/pb_kits/playbook/pb_body/body.rb', line 25 def content body_text = super.presence || text highlighting ? apply_highlight(body_text) : body_text end |