Class: Twitter::Bootstrap::Components::V4::Base

Inherits:
Object
  • Object
show all
Defined in:
app/components/twitter/bootstrap/components/v4/base.rb

Instance Method Summary collapse

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, options = {}, &block)
  @view        = view
  @options     = options
  @block       = block
  @view_locals = {}
end

Instance Method Details

#performObject



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