lib/rapporteur/message_list.rb
# Public: Generates an Array containing the combination of all of the added
# attributes and their messages.
#
# Examples
#
#     list.add(:time, 'is now')
#     list.add(:time, 'is valuable')
#     list.add(:day, 'is today')
#     list.full_messages
#     # => ["time is now", "time is valuable", "day is today"]
#
# Returns an Array containing Strings of messages.
#
Generates an Array containing the combination of all of the added
attributes and their messages.

Examples



Returns an Array containing Strings of messages.
Generates an Array containing the combination of all of the added attributes and their messages . Examples Returns an Array containing Strings of messages .
def full_messages
      @messages.map { |attribute, attribute_messages|
        attribute_messages.map { |message| "#{attribute} #{message}" }
      }.flatten
    end
def full_messages @messages . map { | attribute , attribute_messages | attribute_messages . map { | message | "#{attribute} #{message}" } } . flatten end
Public: Generates an Array containing the combination of all of the added
attributes and their messages.
Public : Generates an Array containing the combination of all of the added attributes and their messages .