Class: Yalphabetize::OffenceDetector
- Inherits:
-
Object
- Object
- Yalphabetize::OffenceDetector
- Defined in:
- lib/yalphabetize/offence_detector.rb
Instance Method Summary collapse
-
#initialize(stream_node) ⇒ OffenceDetector
constructor
A new instance of OffenceDetector.
- #offences? ⇒ Boolean
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
9 10 11 |
# File 'lib/yalphabetize/offence_detector.rb', line 9 def offences? !alphabetized?(stream_node) end |