Class: Yalphabetize::OffenceDetector

Inherits:
Object
  • Object
show all
Defined in:
lib/yalphabetize/offence_detector.rb

Instance Method Summary collapse

Constructor Details

#initialize(stream_node, order_checker_class:) ⇒ 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