class JRuby::Lint::Collectors::Ruby

Public Class Methods

detect?(f) click to toggle source
# File lib/jruby/lint/collectors/ruby.rb, line 9
def self.detect?(f)
  File.extname(f) == '.rb'
end
new(project, file, contents = nil) click to toggle source
Calls superclass method JRuby::Lint::Collector::new
# File lib/jruby/lint/collectors/ruby.rb, line 4
def initialize(project, file, contents = nil)
  super(project, file)
  @contents = contents
end