Sha256: 95d0a1bc4571611e5319dee9e6f8af74579834875b85641e69511e736752d66e
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 Bytes
Contents
module SlimLint # Contains information about a problem or issue with a HAML document. class Lint attr_reader :filename, :line, :linter, :message, :severity # Creates a new lint. # # @param linter [SlimLint::Linter] # @param filename [String] # @param line [Fixnum] # @param message [String] # @param severity [Symbol] def initialize(linter, filename, line, message, severity = :warning) @linter = linter @filename = filename @line = line || 0 @message = message @severity = severity end def error? @severity == :error end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slim_lint-0.1.0 | lib/slim_lint/lint.rb |