Class: ModalDialogHelper::ModalDialog

Inherits:
Object
  • Object
show all
Defined in:
app/helpers/modal_dialog_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, footer)
	@parent = parent
	@header = header
	@body = body
	@footer = footer
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



37
38
39
# File 'app/helpers/modal_dialog_helper.rb', line 37

def body
  @body
end

Returns the value of attribute footer.



37
38
39
# File 'app/helpers/modal_dialog_helper.rb', line 37

def footer
  @footer
end

#headerObject

Returns the value of attribute header.



37
38
39
# File 'app/helpers/modal_dialog_helper.rb', line 37

def header
  @header
end

#parentObject

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

#renderObject



47
48
49
# File 'app/helpers/modal_dialog_helper.rb', line 47

def render
	 :div, modal_content_block, class: 'modal-dialog'
end