Class: BootstrapComponentsHelpers::ModalHelper::ModalBuilder
- Inherits:
-
Object
- Object
- BootstrapComponentsHelpers::ModalHelper::ModalBuilder
- Defined in:
- lib/bootstrap-components-helpers/modal_helper.rb
Instance Attribute Summary collapse
-
#body_content ⇒ Object
readonly
Returns the value of attribute body_content.
-
#footer_content ⇒ Object
readonly
Returns the value of attribute footer_content.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
Instance Method Summary collapse
- #body(&block) ⇒ Object
- #footer(&block) ⇒ Object
-
#initialize(parent) ⇒ ModalBuilder
constructor
A new instance of ModalBuilder.
Constructor Details
#initialize(parent) ⇒ ModalBuilder
Returns a new instance of ModalBuilder.
32 33 34 |
# File 'lib/bootstrap-components-helpers/modal_helper.rb', line 32 def initialize parent @parent = parent end |
Instance Attribute Details
#body_content ⇒ Object (readonly)
Returns the value of attribute body_content.
29 30 31 |
# File 'lib/bootstrap-components-helpers/modal_helper.rb', line 29 def body_content @body_content end |
#footer_content ⇒ Object (readonly)
Returns the value of attribute footer_content.
29 30 31 |
# File 'lib/bootstrap-components-helpers/modal_helper.rb', line 29 def @footer_content end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
29 30 31 |
# File 'lib/bootstrap-components-helpers/modal_helper.rb', line 29 def parent @parent end |
Instance Method Details
#body(&block) ⇒ Object
36 37 38 |
# File 'lib/bootstrap-components-helpers/modal_helper.rb', line 36 def body &block @body_content = capture(&block) end |
#footer(&block) ⇒ Object
40 41 42 |
# File 'lib/bootstrap-components-helpers/modal_helper.rb', line 40 def &block @footer_content = capture(&block) end |