Module: Shipyard::NoteHelper
- Includes:
- ActionView::Context, ActionView::Helpers::TagHelper, ActionView::Helpers::TextHelper
- Included in:
- Jekyll::Note
- Defined in:
- app/helpers/shipyard/note_helper.rb
Instance Method Summary collapse
Instance Method Details
#note(type, content) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/helpers/shipyard/note_helper.rb', line 7 def note(type, content) # Gather the appropriate box classes into an array. class_list = ['note'] class_list << "note-#{type}" if type # Join the CSS Classes together. ||= {} [:class] = class_list.join(' ') # Return the HTML structure for the box. content_tag :div, content, end |