Sha256: aef4571b7193d06b49420fd45d0d0cfa3ee70865d2c3b8e3182617b5e687215a

Contents?: true

Size: 327 Bytes

Versions: 1

Compression:

Stored size: 327 Bytes

Contents

# frozen_string_literal: true
module ThemeCheck
  class Checks < Array
    def call(method, *args)
      each do |check|
        if check.respond_to?(method) && !check.ignored?
          check.send(method, *args)
        end
      end
    end

    def disableable
      self.class.new(select(&:can_disable?))
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
theme-check-0.8.1 lib/theme_check/checks.rb