Class: Yalphabetize::OffenceDetector
- Inherits:
-
Object
- Object
- Yalphabetize::OffenceDetector
- Defined in:
- lib/yalphabetize/offence_detector.rb
Instance Method Summary collapse
-
#initialize(stream_node, order_checker_class:) ⇒ OffenceDetector
constructor
A new instance of OffenceDetector.
- #offences? ⇒ Boolean
Constructor Details
#initialize(stream_node, order_checker_class:) ⇒ OffenceDetector
Returns a new instance of OffenceDetector.
5 6 7 8 |
# File 'lib/yalphabetize/offence_detector.rb', line 5 def initialize(stream_node, order_checker_class:) @stream_node = stream_node @order_checker_class = order_checker_class end |
Instance Method Details
#offences? ⇒ Boolean
10 11 12 |
# File 'lib/yalphabetize/offence_detector.rb', line 10 def offences? !alphabetized?(stream_node) end |