class JRuby::Lint::Finding

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/jruby/lint/finding.rb, line 3
def initialize(*args)
  args[1].map! {|x| x.to_s } if args.size > 1
  if args.size > 2 && args[2].respond_to?(:file) && args[2].respond_to?(:line)
    args = [args[0], args[1], args[2].file, (args[2].line + 1)]
  end
  super
end

Public Instance Methods

error?() click to toggle source
# File lib/jruby/lint/finding.rb, line 11
def error?
  tags.include?('error')
end
to_s() click to toggle source
# File lib/jruby/lint/finding.rb, line 19
def to_s
  "#{file}:#{line}: [#{tags.join(', ')}] #{message}"
end
warning?() click to toggle source
# File lib/jruby/lint/finding.rb, line 15
def warning?
  tags.include?('warning')
end