class NfgUi::Bootstrap::Components::CarouselCaption
Bootstrap
Carousel
Caption Component getbootstrap.com/docs/4.1/components/carousel/#with-captions
Public Instance Methods
component_family()
click to toggle source
# File lib/nfg_ui/bootstrap/components/carousel_caption.rb, line 9 def component_family :carousel end
label()
click to toggle source
# File lib/nfg_ui/bootstrap/components/carousel_caption.rb, line 13 def label options.fetch(:label, nil) end
render() { |: body)| ... }
click to toggle source
Calls superclass method
NfgUi::Bootstrap::Components::Base#render
# File lib/nfg_ui/bootstrap/components/carousel_caption.rb, line 17 def render super do capture do concat(content_tag(:h5, label)) if label concat(block_given? ? yield : body) end end end
Private Instance Methods
non_html_attribute_options()
click to toggle source
Calls superclass method
NfgUi::Bootstrap::Components::Base#non_html_attribute_options
# File lib/nfg_ui/bootstrap/components/carousel_caption.rb, line 28 def non_html_attribute_options super.push(:label) end