Sha256: 9c0595b9495b968c54395c575d66ccd6e7f639e30639960041596bc4ff384460

Contents?: true

Size: 426 Bytes

Versions: 20

Compression:

Stored size: 426 Bytes

Contents

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 check_offense
      fail NotImplementedError
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
fasterer-0.11.0 lib/fasterer/scanners/offensive.rb
fasterer-0.10.1 lib/fasterer/scanners/offensive.rb
fasterer-0.10.0 lib/fasterer/scanners/offensive.rb
fasterer-0.9.0 lib/fasterer/scanners/offensive.rb
fasterer-0.8.3 lib/fasterer/scanners/offensive.rb
fasterer-0.8.2 lib/fasterer/scanners/offensive.rb
fasterer-0.8.1 lib/fasterer/scanners/offensive.rb
fasterer-0.8.0 lib/fasterer/scanners/offensive.rb
fasterer-0.7.1 lib/fasterer/scanners/offensive.rb
fasterer-0.7.0 lib/fasterer/scanners/offensive.rb
fasterer-0.6.0 lib/fasterer/scanners/offensive.rb
fasterer-0.5.1 lib/fasterer/scanners/offensive.rb
fasterer-0.5.0 lib/fasterer/scanners/offensive.rb
fasterer-0.4.2 lib/fasterer/scanners/offensive.rb
fasterer-0.4.1 lib/fasterer/scanners/offensive.rb
fasterer-0.4.0 lib/fasterer/scanners/offensive.rb
fasterer-0.3.2 lib/fasterer/scanners/offensive.rb
fasterer-0.3.1 lib/fasterer/scanners/offensive.rb
fasterer-0.3.0 lib/fasterer/scanners/offensive.rb
fasterer-0.2.1 lib/fasterer/scanners/offensive.rb