class Object
Constants
- Options
- SCRIPT_NAME
Public Instance Methods
check_line_calls_super(_string)
click to toggle source
# File lib/check_super_calls/helpers.rb, line 24 def check_line_calls_super(_string) false end
check_line_overrides(_string)
click to toggle source
# File lib/check_super_calls/helpers.rb, line 20 def check_line_overrides(_string) false end
find_files(ignore_regex_string, base_path, extension)
click to toggle source
Convenience utilities.
# File lib/check_super_calls/helpers.rb, line 5 def find_files(ignore_regex_string, base_path, extension) file_paths = [] ignore_regex = Regexp.new(ignore_regex_string) unless ignore_regex_string.nil? Find.find(base_path) do |path| next if File.directory? path next if path !~ extension if ignore_regex next if path =~ ignore_regex end file_paths << path end file_paths end
regex_any_spaces_between(array)
click to toggle source
# File lib/check_super_calls/languages/pattern.rb, line 15 def regex_any_spaces_between(array) Regexp.new(array.join('\\s*')) end
regex_ending_with(string)
click to toggle source
# File lib/check_super_calls/languages/pattern.rb, line 11 def regex_ending_with(string) Regexp.new('\\.' + string + '$') end