class Swaggable::Errors::ValidationsCollection

Attributes

list[R]

Public Class Methods

new() click to toggle source
# File lib/swaggable/errors/validations_collection.rb, line 15
def initialize
  @list = []
end

Public Instance Methods

<<(entry) click to toggle source
# File lib/swaggable/errors/validations_collection.rb, line 19
def << entry
  list << entry
end
each(*args, &block) click to toggle source
# File lib/swaggable/errors/validations_collection.rb, line 23
def each *args, &block
  list.each(*args, &block)
end
inspect() click to toggle source
# File lib/swaggable/errors/validations_collection.rb, line 27
def inspect
  "#<#{self.class.name}: #{message}>"
end
merge!(other) click to toggle source
# File lib/swaggable/errors/validations_collection.rb, line 31
def merge! other
  other.each {|e| self << e }
end
message() click to toggle source
# File lib/swaggable/errors/validations_collection.rb, line 35
def message
  list.map(&:message).join('. ') + '.'
end