Sha256: fed2a2eb1c09f0869f932bedab41b26ae4c976bcef47681fba6ae800e75d62b0
Contents?: true
Size: 583 Bytes
Versions: 7
Compression:
Stored size: 583 Bytes
Contents
class Pelusa::ClassAnalyzer # Public: Initializes a ClassAnalyzer. # # klass - The class AST node. def initialize(klass) @klass = klass end # Public: Returns the name of the Class being analyzed. # # Returns the String name. def class_name name = @klass.name name.name end # Public: Analyzes a class with a series of lints. # # lints - The lints to check for. # # Returns a collection of Analysis, one for each lint. def analyze(lints) lints.map do |lint_class| lint = lint_class.new lint.check(@klass) end end end
Version data entries
7 entries across 7 versions & 1 rubygems