Sha256: 563ea80cb03eab42b2f6277b503a03e635555908c4e80e3569113d8b5c60ee7c
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 Bytes
Contents
module SlimLint # Contains information about a problem or issue with a Slim 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.2.0 | lib/slim_lint/lint.rb |