Class: JRuby::Lint::Reporters::Text
- Inherits:
-
Object
- Object
- JRuby::Lint::Reporters::Text
- Defined in:
- lib/jruby/lint/reporters/text.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(project, output) ⇒ Text
constructor
A new instance of Text.
- #puts(finding) ⇒ Object
- #report(findings) ⇒ Object
Constructor Details
#initialize(project, output) ⇒ Text
Returns a new instance of Text.
4 5 6 |
# File 'lib/jruby/lint/reporters/text.rb', line 4 def initialize(project, output) @tags, @output = project., output end |
Instance Method Details
#puts(finding) ⇒ Object
14 15 16 |
# File 'lib/jruby/lint/reporters/text.rb', line 14 def puts(finding) @output.puts finding.to_s end |
#report(findings) ⇒ Object
8 9 10 11 12 |
# File 'lib/jruby/lint/reporters/text.rb', line 8 def report(findings) findings.each do |finding| puts finding unless (@tags & finding.).empty? end end |