Class: Bootstrap::ViewHelpers::Component

Inherits:
Object
  • Object
show all
Defined in:
lib/bootstrap/view_helpers/component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(view_context, options, &block) ⇒ Component

Returns a new instance of Component.



9
10
11
12
13
# File 'lib/bootstrap/view_helpers/component.rb', line 9

def initialize(view_context, options, &block)
  @view = view_context
  parse_options(options)
  @block = block
end

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



7
8
9
# File 'lib/bootstrap/view_helpers/component.rb', line 7

def block
  @block
end

#optionsObject (readonly)

Returns the value of attribute options.



7
8
9
# File 'lib/bootstrap/view_helpers/component.rb', line 7

def options
  @options
end

#styleObject (readonly)

Returns the value of attribute style.



7
8
9
# File 'lib/bootstrap/view_helpers/component.rb', line 7

def style
  @style
end

#viewObject (readonly)

Returns the value of attribute view.



7
8
9
# File 'lib/bootstrap/view_helpers/component.rb', line 7

def view
  @view
end

Instance Method Details

#to_htmlObject



15
# File 'lib/bootstrap/view_helpers/component.rb', line 15

def to_html; end