lib/fasterer/scanners/offensive.rb in fasterer-0.2.0 vs lib/fasterer/scanners/offensive.rb in fasterer-0.2.1

- old
+ new

@@ -1,25 +1,23 @@ require 'fasterer/offense' module Fasterer module Offensive - attr_accessor :offense def offensive? !!offense end alias_method :offense_detected?, :offensive? private - def add_offense(offense_name, element_line_number = element.line) - self.offense = Fasterer::Offense.new(offense_name, element_line_number) - end + def add_offense(offense_name, element_line_number = element.line) + self.offense = Fasterer::Offense.new(offense_name, element_line_number) + end - def check_offense - raise NotImplementedError - end - + def check_offense + fail NotImplementedError + end end end