lib/platformx/notify.rb in platformx-0.0.7 vs lib/platformx/notify.rb in platformx-0.0.8

- old
+ new

@@ -1,12 +1,17 @@ module Platformx + + # Notification helpers + # @author Tim Mushen module NotifyHelpers -######################################################## -# -# Start Helpers -# -######################################################## + +# Notify view helper +# @param flash [Object] flash object +# @param timer [Integer] the length the notify should show +# @param align [String] the alignment of the notify (left or right) +# @param from [String] the location of the notify +# @return [String] rendered notify message (js script) def x_notify(flash: "", timer: 4000, align: "right", from:"top") color = "success" message = "" @@ -33,13 +38,7 @@ EOS return cb end end - -######################################################## -# -# End -# -######################################################## end -end \ No newline at end of file +end