Sha256: d416d0cee6abc295886ba8615003a6e7a776ff9ec3cba66a87d7605080681b7d
Contents?: true
Size: 317 Bytes
Versions: 20
Compression:
Stored size: 317 Bytes
Contents
require 'forwardable' module Fasterer class OffenseCollector extend Forwardable def initialize @offenses = [] end def [](offense_name) @offenses.select { |offense| offense.name == offense_name } end def_delegators :@offenses, :push, :any?, :each, :group_by, :count end end
Version data entries
20 entries across 20 versions & 1 rubygems