Class: JRuby::Lint::Collectors::Ruby

Inherits:
JRuby::Lint::Collector show all
Defined in:
lib/jruby/lint/collectors/ruby.rb

Instance Attribute Summary

Attributes inherited from JRuby::Lint::Collector

#checkers, #contents, #file, #findings, #project

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from JRuby::Lint::Collector

all, #ast, inherited, #run

Constructor Details

#initialize(project, file, contents = nil) ⇒ Ruby

Returns a new instance of Ruby.



4
5
6
7
# File 'lib/jruby/lint/collectors/ruby.rb', line 4

def initialize(project, file, contents = nil)
  super(project, file)
  @contents = contents
end

Class Method Details

.detect?(f) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/jruby/lint/collectors/ruby.rb', line 9

def self.detect?(f)
  File.extname(f) == '.rb'
end