Class: Playbook::PbBody::Body

Inherits:
Object
  • Object
show all
Includes:
ActionView::Helpers, Playbook::Props
Defined in:
app/pb_kits/playbook/pb_body/body.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



26
27
28
# File 'app/pb_kits/playbook/pb_body/body.rb', line 26

def classname
  generate_classname("pb_body_kit", color_class, status_class)
end

#contentObject



30
31
32
# File 'app/pb_kits/playbook/pb_body/body.rb', line 30

def content
  highlighting ? apply_highlight : text
end