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