Class: ModalDialogHelper::ModalDialog
- Inherits:
-
Object
- Object
- ModalDialogHelper::ModalDialog
- Defined in:
- app/helpers/modal_dialog_helper.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#footer ⇒ Object
Returns the value of attribute footer.
-
#header ⇒ Object
Returns the value of attribute header.
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize(parent, header, body, footer) ⇒ ModalDialog
constructor
A new instance of ModalDialog.
- #render ⇒ Object
Constructor Details
#initialize(parent, header, body, footer) ⇒ ModalDialog
Returns a new instance of ModalDialog.
40 41 42 43 44 45 |
# File 'app/helpers/modal_dialog_helper.rb', line 40 def initialize(parent, header, body, ) @parent = parent @header = header @body = body @footer = end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
37 38 39 |
# File 'app/helpers/modal_dialog_helper.rb', line 37 def body @body end |
#footer ⇒ Object
Returns the value of attribute footer.
37 38 39 |
# File 'app/helpers/modal_dialog_helper.rb', line 37 def @footer end |
#header ⇒ Object
Returns the value of attribute header.
37 38 39 |
# File 'app/helpers/modal_dialog_helper.rb', line 37 def header @header end |
#parent ⇒ Object
Returns the value of attribute parent.
37 38 39 |
# File 'app/helpers/modal_dialog_helper.rb', line 37 def parent @parent end |
Instance Method Details
#render ⇒ Object
47 48 49 |
# File 'app/helpers/modal_dialog_helper.rb', line 47 def render content_tag :div, modal_content_block, class: 'modal-dialog' end |