Class: Megatron::BoxHelper::BoxMessage
- Defined in:
- app/helpers/megatron/box_helper.rb
Instance Method Summary collapse
- #display(body) ⇒ Object
-
#initialize(options = {}) ⇒ BoxMessage
constructor
A new instance of BoxMessage.
Methods inherited from Helper
Constructor Details
#initialize(options = {}) ⇒ BoxMessage
Returns a new instance of BoxMessage.
4 5 6 |
# File 'app/helpers/megatron/box_helper.rb', line 4 def initialize( = {}) @options = end |
Instance Method Details
#display(body) ⇒ Object
8 9 10 11 12 |
# File 'app/helpers/megatron/box_helper.rb', line 8 def display(body) @options[:body] = body @options[:class] ||= '' render partial: "megatron/shared/box_message", locals: { options: @options } end |