Sha256: 7fb8506e25d5089d2d7a2d18bab2801ed6eaa146132984fc5b7c9493f7447cc1
Contents?: true
Size: 309 Bytes
Versions: 14
Compression:
Stored size: 309 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 end end
Version data entries
14 entries across 14 versions & 1 rubygems