Class: NfgUi::Bootstrap::Components::MediaObject

Inherits:
Base
  • Object
show all
Defined in:
lib/nfg_ui/bootstrap/components/media_object.rb

Overview

Media Object Layout Component getbootstrap.com/docs/4.1/layout/media-object/

Direct Known Subclasses

Components::Elements::MediaObject

Instance Attribute Summary

Attributes inherited from Base

#body, #options, #view_context

Instance Method Summary collapse

Methods inherited from Base

#data, #href, #html_options, #id, #initialize, #style

Constructor Details

This class inherits a constructor from NfgUi::Bootstrap::Components::Base

Instance Method Details

#component_css_classObject



9
10
11
# File 'lib/nfg_ui/bootstrap/components/media_object.rb', line 9

def component_css_class
  ''
end

#component_familyObject



13
14
15
# File 'lib/nfg_ui/bootstrap/components/media_object.rb', line 13

def component_family
  :media
end

#renderObject



17
18
19
# File 'lib/nfg_ui/bootstrap/components/media_object.rb', line 17

def render
  (block_given? ? yield : body)
end