Class: Yalphabetize::OffenceDetector

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

Instance Method Summary collapse

Constructor Details

#initialize(stream_node) ⇒ OffenceDetector

Returns a new instance of OffenceDetector.



5
6
7
# File 'lib/yalphabetize/offence_detector.rb', line 5

def initialize(stream_node)
  @stream_node = stream_node
end

Instance Method Details

#offences?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/yalphabetize/offence_detector.rb', line 9

def offences?
  !alphabetized?(stream_node)
end