Class: Twitter::Bootstrap::Components::V4::Base
- Inherits:
-
Object
- Object
- Twitter::Bootstrap::Components::V4::Base
- Defined in:
- app/components/twitter/bootstrap/components/v4/base.rb
Direct Known Subclasses
Alert, Badge, Button, ButtonGroup, Card, Card::Block, Card::Blockquote, Card::Footer, Card::Header, Carousel, CarouselItem, Flash, Nav, NavItem, NavbarBrand, PortraitCard
Instance Method Summary collapse
-
#initialize(view, options = {}, &block) ⇒ Base
constructor
A new instance of Base.
- #perform ⇒ Object
Constructor Details
#initialize(view, options = {}, &block) ⇒ Base
Returns a new instance of Base.
6 7 8 9 10 11 |
# File 'app/components/twitter/bootstrap/components/v4/base.rb', line 6 def initialize(view, = {}, &block) @view = view @options = @block = block @view_locals = {} end |
Instance Method Details
#perform ⇒ Object
13 14 15 16 |
# File 'app/components/twitter/bootstrap/components/v4/base.rb', line 13 def perform @block_output = block_output @view.render partial: partial, locals: view_locals end |