Class: ThemeCheck::Checks

Inherits:
Array
  • Object
show all
Defined in:
lib/theme_check/checks.rb

Constant Summary collapse

CHECK_METHOD_TIMEOUT =

sec

5

Instance Method Summary collapse

Instance Method Details

#call(method, *args) ⇒ Object



9
10
11
12
13
# File 'lib/theme_check/checks.rb', line 9

def call(method, *args)
  each do |check|
    call_check_method(check, method, *args)
  end
end

#disableableObject



15
16
17
# File 'lib/theme_check/checks.rb', line 15

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

#single_fileObject



23
24
25
# File 'lib/theme_check/checks.rb', line 23

def single_file
  @single_file ||= self.class.new(select(&:single_file?))
end

#whole_themeObject



19
20
21
# File 'lib/theme_check/checks.rb', line 19

def whole_theme
  @whole_theme ||= self.class.new(select(&:whole_theme?))
end