Class: Bootstrap::ViewHelpers::Component
- Inherits:
-
Object
- Object
- Bootstrap::ViewHelpers::Component
- Defined in:
- lib/bootstrap/view_helpers/component.rb
Direct Known Subclasses
Bootstrap::ViewHelpers::Components::Accordion, Bootstrap::ViewHelpers::Components::Alert, Bootstrap::ViewHelpers::Components::Badge, Bootstrap::ViewHelpers::Components::Button, Bootstrap::ViewHelpers::Components::Card, Bootstrap::ViewHelpers::Components::Modal, Bootstrap::ViewHelpers::Components::Modal::Body, Bootstrap::ViewHelpers::Components::Modal::Footer, Bootstrap::ViewHelpers::Components::Modal::Header
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#style ⇒ Object
readonly
Returns the value of attribute style.
-
#view ⇒ Object
readonly
Returns the value of attribute view.
Instance Method Summary collapse
-
#initialize(view_context, options, &block) ⇒ Component
constructor
A new instance of Component.
- #to_html ⇒ Object
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, , &block) @view = view_context () @block = block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
7 8 9 |
# File 'lib/bootstrap/view_helpers/component.rb', line 7 def block @block end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/bootstrap/view_helpers/component.rb', line 7 def @options end |
#style ⇒ Object (readonly)
Returns the value of attribute style.
7 8 9 |
# File 'lib/bootstrap/view_helpers/component.rb', line 7 def style @style end |
#view ⇒ Object (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_html ⇒ Object
15 |
# File 'lib/bootstrap/view_helpers/component.rb', line 15 def to_html; end |