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