class Bootstrap::ViewHelpers::Components::Modal::Body

Public Instance Methods

to_html() click to toggle source
# File lib/bootstrap/view_helpers/components/modal/body.rb, line 6
def to_html
  content_tag(:div, options) { block.call(self) if block.present? }
end

Protected Instance Methods

inject_class_name_to_options() click to toggle source
# File lib/bootstrap/view_helpers/components/modal/body.rb, line 12
def inject_class_name_to_options
  options[:class] = "modal-body #{options[:class]}"
  options[:class].strip!
end
parse_options(options) click to toggle source
# File lib/bootstrap/view_helpers/components/modal/body.rb, line 17
def parse_options(options)
  super
  inject_class_name_to_options
end