Sha256: 02c69fa853c6de703dafaceb6b075bd2b4e51450121a82e6c1eaae59ae504add

Contents?: true

Size: 441 Bytes

Versions: 14

Compression:

Stored size: 441 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
        raise NotImplementedError
      end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fasterer-0.2.0 lib/fasterer/scanners/offensive.rb
fasterer-0.1.12 lib/fasterer/scanners/offensive.rb
fasterer-0.1.11 lib/fasterer/scanners/offensive.rb
fasterer-0.1.10 lib/fasterer/scanners/offensive.rb
fasterer-0.1.9 lib/fasterer/scanners/offensive.rb
fasterer-0.1.8 lib/fasterer/scanners/offensive.rb
fasterer-0.1.7 lib/fasterer/scanners/offensive.rb
fasterer-0.1.6 lib/fasterer/scanners/offensive.rb
fasterer-0.1.5 lib/fasterer/scanners/offensive.rb
fasterer-0.1.4 lib/fasterer/scanners/offensive.rb
fasterer-0.1.3 lib/fasterer/scanners/offensive.rb
fasterer-0.1.2 lib/fasterer/scanners/offensive.rb
fasterer-0.1.1 lib/fasterer/scanners/offensive.rb
fasterer-0.1.0 lib/fasterer/scanners/offensive.rb