Class: Twitter::Bootstrap::Components::V3::Base
- Inherits:
-
Object
- Object
- Twitter::Bootstrap::Components::V3::Base
show all
- Defined in:
- app/components/twitter/bootstrap/components/v3/base.rb
Instance Method Summary
collapse
Constructor Details
#initialize(view, options = {}, &block) ⇒ Base
6
7
8
9
10
11
|
# File 'app/components/twitter/bootstrap/components/v3/base.rb', line 6
def initialize(view, options = {}, &block)
@view = view
@options = options
@block = block
@view_locals = {}
end
|
Instance Method Details
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
|