lib/scss_lint/reporter.rb in scss-lint-0.23.1 vs lib/scss_lint/reporter.rb in scss-lint-0.24.0
- old
+ new
@@ -1,9 +1,13 @@
module SCSSLint
# Responsible for displaying lints to the user in some format.
class Reporter
attr_reader :lints
+ def self.descendants
+ ObjectSpace.each_object(Class).select { |klass| klass < self }
+ end
+
def initialize(lints)
@lints = lints
end
def report_lints