Class: Filter
- Inherits:
-
Object
- Object
- Filter
- Defined in:
- lib/saikuro.rb
Overview
———— END Analyzer logic ————————————
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#warn ⇒ Object
Returns the value of attribute warn.
Instance Method Summary collapse
- #error?(count) ⇒ Boolean
- #ignore?(count) ⇒ Boolean
-
#initialize(limit = -1,, error = 11, warn = 8) ⇒ Filter
constructor
A new instance of Filter.
- #warn?(count) ⇒ Boolean
Constructor Details
#initialize(limit = -1,, error = 11, warn = 8) ⇒ Filter
Returns a new instance of Filter.
595 596 597 598 599 |
# File 'lib/saikuro.rb', line 595 def initialize(limit = -1, error = 11, warn = 8) @limit = limit @error = error @warn = warn end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
593 594 595 |
# File 'lib/saikuro.rb', line 593 def error @error end |
#limit ⇒ Object
Returns the value of attribute limit.
593 594 595 |
# File 'lib/saikuro.rb', line 593 def limit @limit end |
#warn ⇒ Object
Returns the value of attribute warn.
593 594 595 |
# File 'lib/saikuro.rb', line 593 def warn @warn end |
Instance Method Details
#error?(count) ⇒ Boolean
609 610 611 |
# File 'lib/saikuro.rb', line 609 def error?(count) count >= @error end |
#ignore?(count) ⇒ Boolean
601 602 603 |
# File 'lib/saikuro.rb', line 601 def ignore?(count) count < @limit end |
#warn?(count) ⇒ Boolean
605 606 607 |
# File 'lib/saikuro.rb', line 605 def warn?(count) count >= @warn end |