Class: Twitter::Bootstrap::Components::V3::Base
- Inherits:
-
Object
- Object
- Twitter::Bootstrap::Components::V3::Base
- Defined in:
- app/components/twitter/bootstrap/components/v3/base.rb
Direct Known Subclasses
Alert, Badge, Button, ButtonGroup, MediaObject, NavbarBrand, ResponsiveEmbed, Thumbnail
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/v3/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/v3/base.rb', line 13 def perform @block_output = block_output @view.render partial: self.class.name.underscore, locals: view_locals end |