Sha256: f658b713ec36d836a34d524fbb1da53595cbeb2e1724345abbf9d1b5d15736ac
Contents?: true
Size: 658 Bytes
Versions: 2
Compression:
Stored size: 658 Bytes
Contents
module Pelusa # Public: A Report is a wrapper that relates a class name with all its # analyses for different lint checks. # class Report # Public: Initializes a new Report. # # class_name - The Symbol name of the class being analyzed. # type - the String type of the class being analyzed (class or module). # analyses - An Array of Analysis objects. def initialize(name, type, analyses) @class_name = name @type = type @analyses = analyses end attr_reader :class_name, :type, :analyses def successful? @analyses.all? { |analysis| analysis.successful? } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pelusa-0.2.4 | lib/pelusa/report.rb |
pelusa-0.2.3 | lib/pelusa/report.rb |