Class: JRuby::Lint::Collectors::Ruby
- Inherits:
-
JRuby::Lint::Collector
- Object
- JRuby::Lint::Collector
- JRuby::Lint::Collectors::Ruby
- 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
-
#initialize(project, file, contents = nil) ⇒ Ruby
constructor
A new instance of Ruby.
Methods inherited from JRuby::Lint::Collector
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
9 10 11 |
# File 'lib/jruby/lint/collectors/ruby.rb', line 9 def self.detect?(f) File.extname(f) == '.rb' end |