module Shipyard::NoteHelper
Public Instance Methods
note(type, content, options={})
click to toggle source
# File lib/shipyard-framework/helpers/note_helper.rb, line 7 def note(type, content, options={}) # Gather the appropriate box classes into an array. class_list = ['note'] class_list << "note-#{type}" if type # Join the CSS Classes together. options[:class] = class_list.join(' ') # Return the HTML structure for the box. content_tag :div, content, options end