Module: NfgUi::Bootstrap::Utilities::Wrappable
- Included in:
- Components::Badge, Components::Button, Components::DropdownItem, Components::DropdownToggle, Components::ListGroup, Components::ListGroupItem, Components::Nav, Components::NavItem, Components::Navbar, Components::NavbarNav, Components::Elements::Avatar, Components::Elements::StepIndicator, Components::Foundations::Typeface
- Defined in:
- lib/nfg_ui/bootstrap/utilities/wrappable.rb
Overview
Allows component to swap out the main component wrapping element (ex. :div vs. :span) Pass in :as – only unique logic at the moment is converting :link to :a for tag generation
Instance Attribute Summary collapse
-
#as ⇒ Object
Returns the value of attribute as.
Instance Method Summary collapse
Instance Attribute Details
#as ⇒ Object
Returns the value of attribute as.
10 11 12 |
# File 'lib/nfg_ui/bootstrap/utilities/wrappable.rb', line 10 def as @as end |
Instance Method Details
#utility_initialize ⇒ Object
12 13 14 15 |
# File 'lib/nfg_ui/bootstrap/utilities/wrappable.rb', line 12 def utility_initialize self.as = .fetch(:as, automatic_as) super end |